Nice Pottery Mug

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

    13.15.0 • Public • Published

    @unction/shuffle

    Tests Stability Dependencies

    OrderedArray | Set | Record<string | number | symbol, B> | Map<B, A> | string => OrderedArray | Set | Record<string | number | symbol, B> | Map<B, A> | string

    Takes an Ordered Functor and returns an Ordered Functor with the same content, but in a random order.

    users()

    Would return:

    [{"id": 1, "name": "Kurtis Rainbolt-Greene"}, {"id": 2, "name": "Angela Englund"}, {"id": 3, "name": "Joshua Benitez"}]
    shuffle(users())

    Would return:

    [{"id": 1, "name": "Kurtis Rainbolt-Greene"}, {"id": 3, "name": "Joshua Benitez"}, {"id": 2, "name": "Angela Englund"}]
    shuffle(users())

    Would return:

    [{"id": 3, "name": "Joshua Benitez"}, {"id": 1, "name": "Kurtis Rainbolt-Greene"}, {"id": 2, "name": "Angela Englund"}]
    shuffle(users())

    Would return:

    [{"id": 2, "name": "Angela Englund"}, {"id": 3, "name": "Joshua Benitez"}, {"id": 1, "name": "Kurtis Rainbolt-Greene"}]

    Install

    npm i @unction/shuffle

    DownloadsWeekly Downloads

    18

    Version

    13.15.0

    License

    SEE LICENSE IN LICENSE

    Unpacked Size

    23.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • krainboltgreene