1 contributor
Like
Install times as a package?
Copied
npm i @bit/justin-capalbo.ramda.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 (
fn:
Function
,n:
) : Number
Array
Calls an input function n
times, returning an array containing the results
of those function calls.
fn
is passed one argument: The current value of n
, which begins at 0
and is gradually incremented to n - 1
.
Example
Arguments
fn:
Function
The function to invoke. Passed one argument, the current value of n
.
n:
Number
A value between 0
and n - 1
. Increments after each function call.
Returns
Array
An array containing the return values of all calls to `fn`.