array-shuffler
v1.0.0
Published
An Array Shuffler API in JavaScript to arrange the elements of an array in random order
Downloads
2
Readme
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());