7 lines
133 B
JavaScript
Raw Permalink Normal View History

2024-10-15 23:05:53 +03:00
import sample from './sample.js';
// Shuffle a collection.
export default function shuffle(obj) {
return sample(obj, Infinity);
}