Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    array-shufflepublic

    array-shuffle Build Status

    Randomize the order of items in an array

    Uses the Fisher–Yates algorithm.

    Install

    $ npm install --save array-shuffle

    Usage

    const shuffled = arrayShuffle([1, 2, 3, 4, 5, 6]);
    //=> [3, 5, 4, 1, 2, 6] 

    License

    MIT © Sindre Sorhus

    install

    npm i array-shuffle

    Downloadslast 7 days

    7,028

    version

    1.0.1

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar