• Internal

    Returns a new generator that yields elements that are arrays of size n, grouped from the input iterable, by moving the window by step elements at a time.

    Type Parameters

    • T

      The element type of the input iterable

    Parameters

    • iterable: Iterable<T>

      The input iterable

    • n: number

      The size of the groups

    Returns Generator<T[], void, undefined>

    A new generator yielding arrays of size n of type T[], grouped from the input iterable, by moving the window by step elements at a time.

Generated using TypeDoc