Skip to content

Commit 5eb363a

Browse files
authored
Q12 answer correction
1 parent 370d60a commit 5eb363a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

challenges/collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function rangeGenFunc(start = 1, end = 0) {
373373
}
374374

375375
const arr = rangeGenFunc(1, 10); // [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
376-
arr.sort(i => 0.5 - Math.random()); // [6, 8, 5, 10, 4, 3, 9, 2, 7, 1]
376+
arr.sort(() => 0.5 - Math.random()); // [6, 8, 5, 10, 4, 3, 9, 2, 7, 1]
377377
```
378378

379379
```js

0 commit comments

Comments
 (0)