Function repeat

  • Repeats value a certain number of times.

    Type Parameters

    • T

    Parameters

    • value: T

      The value to repeat.

    • times: number = Infinity

      The number of times to repeat value (default: Infinity).

    Returns IterableIterator<T>