shuffle.js 157 B

1234567891011
  1. define(['./sample'], function (sample) {
  2. // Shuffle a collection.
  3. function shuffle(obj) {
  4. return sample(obj, Infinity);
  5. }
  6. return shuffle;
  7. });