|
|
3 yıl önce | |
|---|---|---|
| .. | ||
| index.js | 3 yıl önce | |
| license | 3 yıl önce | |
| package.json | 3 yıl önce | |
| readme.md | 3 yıl önce | |
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