aboutsummaryrefslogtreecommitdiffstats
path: root/src/helpers
diff options
context:
space:
mode:
authorLibravatar muhamedsalih-tw <104364298+muhamedsalih-tw@users.noreply.github.com>2022-10-28 07:37:55 +0530
committerLibravatar GitHub <noreply@github.com>2022-10-28 02:07:55 +0000
commitd95573393206bc3931202d363bfb6c54974e0203 (patch)
treebd1428342f8d6124f747612a3711546a972108eb /src/helpers
parent6.2.1-nightly.31 [skip ci] (diff)
downloadferdium-app-d95573393206bc3931202d363bfb6c54974e0203.tar.gz
ferdium-app-d95573393206bc3931202d363bfb6c54974e0203.tar.zst
ferdium-app-d95573393206bc3931202d363bfb6c54974e0203.zip
Transform welcome component tree to TS (#715)v6.2.1-nightly.31
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/array-helpers.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helpers/array-helpers.ts b/src/helpers/array-helpers.ts
index 33be12fa7..ffb584eab 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<T>(arr: T[]): T[] {
2 return arr 2 return arr
3 .map(a => [Math.random(), a]) 3 .map(a => [Math.random(), a] as [number, T])
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}