diff options
Diffstat (limited to 'src/helpers/array-helpers.js')
-rw-r--r-- | src/helpers/array-helpers.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helpers/array-helpers.js b/src/helpers/array-helpers.js index ffb3b63dc..5e592b7f7 100644 --- a/src/helpers/array-helpers.js +++ b/src/helpers/array-helpers.js | |||
@@ -1,4 +1,4 @@ | |||
1 | export const shuffleArray = arr => arr | 1 | export const shuffleArray = (arr) => arr |
2 | .map(a => [Math.random(), a]) | 2 | .map((a) => [Math.random(), a]) |
3 | .sort((a, b) => a[0] - b[0]) | 3 | .sort((a, b) => a[0] - b[0]) |
4 | .map(a => a[1]); | 4 | .map((a) => a[1]); |