Function loop

  • Loops over the given number of iterations and calls the given callback function for each iteration.

    Type Parameters

    Parameters

    • count: number

      The number of iterations.

    • callback: ((index) => T)

      The callback function.

        • (index): T
        • Parameters

          • index: number

          Returns T

    Returns T[]

    An array of the return values of the callback function.

Generated using TypeDoc