• Invokes the iteratee function n times, returning an array of the results of each invocation. The iteratee is invoked with one argument; (index).

    Type Parameters

    • TResult

    Parameters

    • n: number

      The number of times to invoke iteratee.

    • iteratee: ((num: number) => TResult)

      The function invoked per iteration.

    Returns TResult[]

    Returns the array of results.

  • Parameters

    • n: number

    Returns number[]

    _.times