Skip to content

Commit 0ada757

Browse files
authored
Update FisherYatesShuffle.js
Splited initialized 'let' declarations into multiple statements
1 parent 6b2840f commit 0ada757

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sorts/FisherYatesShuffle.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const shuffle = (array) => {
2-
let maxLength = array.length,
3-
temp,
4-
idx
2+
let maxLength = array.length
3+
let temp
4+
let idx
55

66
// While there remain elements to shuffle...
77
while (maxLength) {

0 commit comments

Comments
 (0)