diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-10-15 09:48:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-15 09:48:06 +0200 |
commit | 14d2364fc69e0222133115c55a36286986006098 (patch) | |
tree | 9e9b3c41ef742bbe87ca1632b292c67043051957 /src/helpers/array-helpers.ts | |
parent | 5.6.3-nightly.34 [skip ci] (diff) | |
download | ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.gz ferdium-app-14d2364fc69e0222133115c55a36286986006098.tar.zst ferdium-app-14d2364fc69e0222133115c55a36286986006098.zip |
chore: update eslint setup (#2074)
Diffstat (limited to 'src/helpers/array-helpers.ts')
-rw-r--r-- | src/helpers/array-helpers.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/helpers/array-helpers.ts b/src/helpers/array-helpers.ts index ae5d8d99f..3f8806176 100644 --- a/src/helpers/array-helpers.ts +++ b/src/helpers/array-helpers.ts | |||
@@ -1,4 +1,5 @@ | |||
1 | export const shuffleArray = (arr: any[]) => arr | 1 | export const shuffleArray = (arr: any[]) => |
2 | .map((a) => [Math.random(), a]) | 2 | arr |
3 | .sort((a, b) => a[0] - b[0]) | 3 | .map(a => [Math.random(), a]) |
4 | .map((a) => a[1]); | 4 | .sort((a, b) => a[0] - b[0]) |
5 | .map(a => a[1]); | ||