Package Exports
- @adriantombu/array-shuffle
- @adriantombu/array-shuffle/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@adriantombu/array-shuffle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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 git@github.com: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/