|
|
před 3 roky | |
|---|---|---|
| .. | ||
| index.js | před 3 roky | |
| license | před 3 roky | |
| package.json | před 3 roky | |
| readme.md | před 3 roky | |
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