Meet npm Pro: unlimited public & private packages + package-based permissions.Learn more »

just-shuffle

2.1.0 • Public • Published

just-random

Part of a library of zero-dependency npm modules that do just do one thing.
Guilt-free utilities for every occasion.

Try it now

import shuffle from 'just-shuffle';
 
shuffle([1, 2, 3]); // array with original elements randomly sorted
shuffle([1]); // [1]
shuffle(); // undefined
shuffle(undefined); // undefined
shuffle(null); // undefined
shuffle({}); // undefined

Install

npm i just-shuffle

DownloadsWeekly Downloads

229

Version

2.1.0

License

MIT

Unpacked Size

2.6 kB

Total Files

4

Last publish

Collaborators

  • avatar