mirror of
https://github.com/TheNetsky/Microsoft-Rewards-Script.git
synced 2026-01-18 14:03:58 +00:00
1.0.3
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user