Function cycle

  • Creates an iterator that cycles through the input iterator's values a certain number of times.

    Type Parameters

    Parameters

    • Optionaltimes: number

      The number of times to cycle through the input iterator's values (default: Infinity).

    Returns ((arg: T) => IterableIterator<IterSource<T>>)

  • Type Parameters

    Parameters

    • arg: T
    • Optionaltimes: number

    Returns IterableIterator<IterSource<T>>