diff options
Diffstat (limited to 'src/helpers/array-helpers.ts')
-rw-r--r-- | src/helpers/array-helpers.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helpers/array-helpers.ts b/src/helpers/array-helpers.ts index 3f8806176..45ff932ba 100644 --- a/src/helpers/array-helpers.ts +++ b/src/helpers/array-helpers.ts | |||
@@ -1,4 +1,4 @@ | |||
1 | export const shuffleArray = (arr: any[]) => | 1 | export const shuffleArray = (arr: any[]): any[] => |
2 | arr | 2 | 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]) |