|
|
hace 3 años | |
|---|---|---|
| .. | ||
| index.js | hace 3 años | |
| license | hace 3 años | |
| package.json | hace 3 años | |
| readme.md | hace 3 años | |
Randomize the order of items in an array
Uses the Fisher–Yates algorithm.
$ npm install --save array-shuffle
const shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);
//=> [3, 5, 4, 1, 2, 6]
MIT © Sindre Sorhus