apply
v0.9.6arrow_drop_downv0.9.6
STATUS
Passing
DOWNLOADS
3
VISIBILITY
Public
PUBLISHED
5 years ago
SIZE
798 B
Applies function `fn` to the argument list `args`.
1 contributor
Like
Install apply as a package?
Copied
npm i @bit/justin-capalbo.ramda.apply
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
apply (
fn:
Function
,args:
) : Array
*
Applies function fn
to the argument list args
. This is useful for
creating a fixed-arity function from a variadic function. fn
should be a
bound function if context is significant.
Example
Arguments
fn:
Function
The function which will be called with args
args:
Array
The arguments to call fn
with
Returns
*
result The result, equivalent to `fn(...args)`