This commit is contained in:
TheNetsky
2023-09-28 20:18:48 +02:00
parent 56cdb04920
commit 01bbf0b270
8 changed files with 79 additions and 26 deletions

View File

@@ -13,7 +13,8 @@ export function getFormattedDate(ms = Date.now()) {
return `${month}/${day}/${year}`
}
export function shuffleArray(array: string[]): string[] {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export function shuffleArray(array: any[]): any[] {
const shuffledArray = array.slice()
shuffledArray.sort(() => Math.random() - 0.5)