Function times

  • Invokes the iteratee n times, an array of the results of each invocation.

    Type Parameters

    • T

    Parameters

    • length: number

      length of array

    • callback: ((_, x) => T)

      callback to generate array item

        • (_, x): T
        • Parameters

          • _: unknown
          • x: number

          Returns T

    Returns T[]

    processed array