1 contributor
Like
Install invoker as a package?
Copied
npm i @bit/justin-capalbo.ramda.invoker
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
invoker (
arity:
Number
,method:
) : String
Function
Turns a named method with a specified arity into a function that can be called directly supplied with arguments and a target object.
The returned function is curried and accepts arity + 1
parameters where
the final parameter is the target object.
Example
Arguments
arity:
Number
Number of arguments the returned function should take before the target object.
method:
String
Name of the method to call.
Returns
Function
A new curried function.