Update FisherYatesShuffle.js

Splited initialized 'let' declarations into multiple statements
This commit is contained in:
Omkarnath Parida
2021-10-03 20:08:02 +05:30
committed by GitHub
parent 6b2840f579
commit 0ada757576

View File

@ -1,7 +1,7 @@
export const shuffle = (array) => { export const shuffle = (array) => {
let maxLength = array.length, let maxLength = array.length
temp, let temp
idx let idx
// While there remain elements to shuffle... // While there remain elements to shuffle...
while (maxLength) { while (maxLength) {