@adriantombu/array-shuffle
TypeScript icon, indicating that this package has built-in type declarations

2.0.11 • Public • Published

Yet Another Array Shuffle Package

npm version

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/

Package Sidebar

Install

npm i @adriantombu/array-shuffle

Weekly Downloads

4

Version

2.0.11

License

MIT

Unpacked Size

4.57 kB

Total Files

7

Last publish

Collaborators

  • adriantombu