sindresorhus / array-shuffle

Randomize the order of items in an array
MIT License
107 stars 11 forks source link

Is this a package that requires node? Or also usable in browser? #4

Closed mesqueeb closed 3 years ago

mesqueeb commented 3 years ago

It's a bit unclear from the readme now. I'd like to use this in a browser SPA that doesn't rely on NodeJS.

sindresorhus commented 3 years ago

Yes, the general rule, is that if a package doesn't have any imports, it's safe to use in the browser.