chore: cleanup
This commit is contained in:
parent
7ec3c83112
commit
4302f61f8c
4 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
}
|
||||
|
|
Reference in a new issue