Share your code. Components are building blocks, you are the architect.

utils/apply
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Applies function `fn` to the argument list `args`

Please configure Bit as a scoped registry to install components with NPM.Learn more

npm config set '@bit:registry' https://node.bitsrc.io
Use utils/apply in your project
npm i @bit/bit.ramda.utils.apply
Copied

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

var nums = [1, 2, 3, -99, 42, 6, 7];
     R.apply(Math.max, nums); //=> 42

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)`