1 contributor
Like
Install n-ary as a package?
Copied
npm i @bit/justin-capalbo.ramda.n-ary
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
nAry (
n:
Number
,fn:
) : Function
Function
Wraps a function of any arity (including nullary) in a function that accepts
exactly n
parameters. Any extraneous parameters will not be passed to the
supplied function.
Example
Arguments
n:
Number
The desired arity of the new function.
fn:
Function
The function to wrap.
Returns
Function
A new function wrapping `fn`. The new function is guaranteed to be of arity `n`.