shuffle.js 133 B

123456
  1. import sample from './sample.js';
  2. // Shuffle a collection.
  3. export default function shuffle(obj) {
  4. return sample(obj, Infinity);
  5. }