• Returns an iterator that cycles indefinitely over the elements of iterable.

    • If start is given it starts the iteration from that element. Otherwise, it starts with the first element of the array.
    • If start is given, it must contain by the elements array. Otherwise, an error will be thrown.

    Warning: Typical uses of the resulting iterator may produce an infinite loop. You should use an explicit break.

    Type Parameters

    • T

    Parameters

    • elements: readonly T[]
    • Optional start: T

    Returns IterableIterator<T>