Initial get branding

This commit is contained in:
Ajay
2022-12-23 16:56:27 -05:00
parent cff2325aef
commit cc24a4902f
7 changed files with 393 additions and 0 deletions

8
src/utils/array.ts Normal file
View File

@@ -0,0 +1,8 @@
export function shuffleArray<T>(array: T[]): T[] {
for (let i = array.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[array[i], array[j]] = [array[j], array[i]];
}
return array;
}