Function times

  • Repeat the given function number times

    Type Parameters

    • T

    Parameters

    • number: number

      The number of times to itterate

    • cb: ((i: number) => T)

      The function to run

        • (i: number): T
        • Parameters

          • i: number

          Returns T

    Returns T[]

Generated using TypeDoc