ts-iterable-functions
    Preparing search index...

    Function repeat

    • Creates an iterable that repeats a given item a specified number of times.

      Type Parameters

      • T

        The type of the item.

      Parameters

      • item: T

        The item to repeat.

      • numRepeats: number

        The number of times to repeat the item.

      Returns Iterable<T>

      An iterable of repeated items.