Function repeat

  • Repeat an array given times.

    Type Parameters

    • T

    Parameters

    • x: T[]

      an array

    • n: number = 1

      times [1]

    Returns T[]

    x ⧺ x ⧺ ...(n times)

Generated using TypeDoc