@adamburgess/linq

    Module enumerable

    Some handy methods to create repeatable iterables.

    // you can import _all_ of them:
    import Enumerable from '@adamburgess/linq/enumerable'
    // or just the one you want:
    import { repeat } from '@adamburgess/linq/enumerable'
    Array.from(repeat([1, 2], 3))
    // => [1, 2, 1, 2, 1, 2]

    Best to import exactly what you need, as this can be tree-shooken.

    Variables

    default

    Functions

    byMin_byMax_min_max
    concat
    createLazyGenerator
    distinct
    empty
    flat
    groupBy
    groupByMap
    map
    max
    maxBy
    min
    minBy
    range
    repeat
    reverse
    skip
    skipWhile
    take
    takeWhile
    where
    MMNEPVFCICPMFPCPTTAAATR