bmjs-shuffle
v1.0.0
Published
A simple function for shuffling an array.
Downloads
3
Readme
bmjs-shuffle
A simple function for shuffling an array.
Example usage:
const shuffle = require('bmjs-shuffle');
let arr = ['cheese','donuts','ham','bacon'];
let shuffled = shuffle(arr);
console.log(shuffled); // ['ham','donuts','cheese','bacon']