diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-07-25 08:16:50 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-07-25 08:17:10 +0530 |
commit | cf282aa351cbc58691fb1b2fb4764830247cdbe8 (patch) | |
tree | 1a6ac4c9abd8b3de9d358016a5065da86cdd8510 /src/helpers/array-helpers.ts | |
parent | 6.0.1-nightly.3 [skip ci] (diff) | |
download | ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.gz ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.tar.zst ferdium-app-cf282aa351cbc58691fb1b2fb4764830247cdbe8.zip |
eslint needs to be executed at the top-level to actually workv6.0.1-nightly.3
Diffstat (limited to 'src/helpers/array-helpers.ts')
-rw-r--r-- | src/helpers/array-helpers.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helpers/array-helpers.ts b/src/helpers/array-helpers.ts index 5d28af433..33be12fa7 100644 --- a/src/helpers/array-helpers.ts +++ b/src/helpers/array-helpers.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | export default function shuffleArray(arr: any[]): any[] { | 1 | export default function shuffleArray(arr: any[]): any[] { |
2 | return arr | 2 | return arr |
3 | .map(a => [ Math.random(), a ]) | 3 | .map(a => [Math.random(), a]) |
4 | .sort((a, b) => a[ 0 ] - b[ 0 ]) | 4 | .sort((a, b) => a[0] - b[0]) |
5 | .map(a => a[ 1 ]) | 5 | .map(a => a[1]); |
6 | }; | 6 | } |