• Internal

    Create a new generator that yields the first n elements of the input iterable.

    Type Parameters

    • T

      The element type of the input iterable

    Parameters

    • iterable: Iterable<T>

      The input iterable

    • count: number

      The number of elements to take

    Returns Generator<T>

    A new generator with the first n elements of the input iterable.

Generated using TypeDoc