@adriantombu/array-shuffle
v2.0.11
Published
A package that... well... shuffles the values of an array. Yup. That's all.
Downloads
53
Maintainers
Readme
Yet Another Array Shuffle Package
A package that... well... shuffles the values of an array. Yup. That's all. All in 206 bytes of code.
How to use it
- Install the library first with
yarn add @adriantombu/array-shuffle
- And then import it in your script
const { arrayShuffle } = require('@adriantombu/array-shuffle')
const myRandomArray = [ "I", "believe", "I", "can", "fly"]
const myShuffledArray = arrayShuffle(myRandomArray)
[ "fly", "I", "can", "believe", "I"]
How to contribute
- Clone the repository
git clone [email protected]:adriantombu/array-shuffle.git
- Install the packages with
yarn install
- Modify the
src/index.ts
file - When everything's done, you can send a PR \o/