Randomize the order of items in an array
Uses the Durstenfeld algorithm which is based on the Fisher–Yates algorithm.
$ npm install array-shuffle
import arrayShuffle from 'array-shuffle';
const shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);
//=> [3, 5, 4, 1, 2, 6]
Type: Array
The array to shuffle.