chore: cleanup

This commit is contained in:
Cory Dransfeldt 2024-09-15 11:43:04 -07:00
parent 7ec3c83112
commit 4302f61f8c
No known key found for this signature in database
4 changed files with 10 additions and 10 deletions

View file

@ -2,10 +2,10 @@ import slugify from 'slugify'
export const shuffleArray = array => {
for (let i = array.length - 1; i > 0; i--) {
let j = Math.floor(Math.random() * (i + 1));
let temp = array[i];
array[i] = array[j];
array[j] = temp;
let j = Math.floor(Math.random() * (i + 1))
let temp = array[i]
array[i] = array[j]
array[j] = temp
}
return array
}