Skip to content

Commit

Permalink
chore(prettier): Ran prettier check
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkSpencer committed Aug 8, 2024
1 parent 485eeaa commit 201d868
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/Functions/Utility/ArrayShuffle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* @returns {T[]} The shuffled array
*/
export function ArrayShuffle<T>(array: T[]): T[] {
const data = [...array]
const data = [...array];

for (let index = array.length - 1; index > 0; index--) {
const i = Math.floor(Math.random() * (index + 1));
[data[index], data[i]] = [data[i], data[index]];
}
for (let index = array.length - 1; index > 0; index--) {
const i = Math.floor(Math.random() * (index + 1));
[data[index], data[i]] = [data[i], data[index]];
}

return data;
}
return data;
}
2 changes: 1 addition & 1 deletion src/Interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from "./Discord";
export * from "./Utility";
export * from "./Utility";

0 comments on commit 201d868

Please sign in to comment.