shuffle.js 148 B

12345678
  1. var sample = require('./sample.js');
  2. // Shuffle a collection.
  3. function shuffle(obj) {
  4. return sample(obj, Infinity);
  5. }
  6. module.exports = shuffle;