Like
Install times as a package?
Copied
npm i @bit/lodash.lodash.times
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example modifieddraft
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
No preview available
chevron_left
chevron_right
times (
n:
number
,iteratee:
) : Function
Array
Invokes the iteratee n
times, returning an array of the results of
each invocation. The iteratee is invoked with one argument: (index).
Example
Arguments
n:
number
The number of times to invoke iteratee
.
iteratee:
Function
The function invoked per iteration.
Returns
Array
Returns the array of results.