|
8 年之前 | |
---|---|---|
.. | ||
index.js | 8 年之前 | |
license | 8 年之前 | |
package.json | 8 年之前 | |
readme.md | 8 年之前 |
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