aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers/array-helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/helpers/array-helpers.ts')
-rw-r--r--src/helpers/array-helpers.ts8
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 @@
1export default function shuffleArray(arr: any[]): any[] { 1export 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}