• Internal

    Create a new generator that yields elements from the input iterable with their index. New elements are tuples of the form [index, value].

    Type Parameters

    • T

      The element type of the input iterable

    Parameters

    • iterable: Iterable<T>

      The input iterable

    Returns Generator<[number, T]>

    A new generator which has elements from the input iterable with their index.

Generated using TypeDoc