fix naming

This commit is contained in:
Stefan Feješ
2017-12-17 15:41:31 +01:00
parent bebe9ec3c4
commit f559030eac
73 changed files with 18 additions and 18 deletions

View File

@ -3,6 +3,6 @@
Use `Array.sort()` to reorder elements, using `Math.random()` in the comparator.
```js
const shuffle = arr => arr.sort(() => Math.random() - 0.5);
const shuffleArray = arr => arr.sort(() => Math.random() - 0.5);
// shuffle([1,2,3]) -> [2,3,1]
```