mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
Update FisherYatesShuffle.js
Splited initialized 'let' declarations into multiple statements
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
export const shuffle = (array) => {
|
||||
let maxLength = array.length,
|
||||
temp,
|
||||
idx
|
||||
let maxLength = array.length
|
||||
let temp
|
||||
let idx
|
||||
|
||||
// While there remain elements to shuffle...
|
||||
while (maxLength) {
|
||||
|
Reference in New Issue
Block a user