shuffle.js 148 B

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