Nutritious Polygonal Meatball
    Have ideas to improve npm?Join in the discussion! »

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

    1.0.9 • Public • Published

    @pacote/shuffle

    version minified minified + gzip

    An implementation of the Durstenfeld algorithm for shuffling collections.

    Installation

    yarn add @pacote/shuffle

    Usage

    import { shuffle } from '@pacote/shuffle'
    
    shuffle([1, 2, 3])

    shuffle<T>(items: T[]): T[]

    shuffle() takes an item sequence and returns a randomly permutated sequence of its elements.

    License

    MIT © Luís Rodrigues.

    Install

    npm i @pacote/shuffle

    DownloadsWeekly Downloads

    18

    Version

    1.0.9

    License

    MIT

    Unpacked Size

    6.64 kB

    Total Files

    10

    Last publish

    Collaborators

    • avatar