1 contributor
Like
Install unapply as a package?
Copied
npm i @bit/justin-capalbo.ramda.unapply
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
unapply (
fn:
) : Function
Function
Takes a function fn
, which takes a single array argument, and returns a
function which:
- takes any number of positional arguments;
- passes these arguments to
fn
as an array; and - returns the result.
In other words, R.unapply
derives a variadic function from a function which
takes an array. R.unapply
is the inverse of R.apply
.
Example
Argument
fn:
Function
Returns
Function