Function repeatValue

  • Repeats a given value for the specified number of times as an iterable.

    Type Parameters

    • TSource

      The type of element to repeat.

    Parameters

    • value: TSource

      The value to repeat as an iterable.

    • Optional count: number = -1

      The number of times to repeat the value, infinite if not specified.

    Returns Iterable<TSource>

    An iterable with a single item that is repeated over the specified times.

Generated using TypeDoc