1.0.0 • Published 6 years ago
array-shuffler v1.0.0
array-shuffler
An Array Shuffler API in JavaScript to arrange the elements of an array in random order
How to use?
const { shuffle, addShuffleToArrayPrototype } = require('./index.js');
let arr = [1,2,3,4,5];
console.log(shuffle(arr));
addShuffleToArrayPrototype();
console.log(arr.shuffle());1.0.0
6 years ago