shuffle.js 157 B

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