|
il y a 8 ans | |
---|---|---|
.. | ||
index.js | il y a 8 ans | |
license | il y a 8 ans | |
package.json | il y a 8 ans | |
readme.md | il y a 8 ans |
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