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

utils/call
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Returns the result of calling its first argument with the remaining

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/call in your project
npm i @bit/bit.ramda.utils.call
Copied

call (fn:Function, args:...*) : *

Returns the result of calling its first argument with the remaining arguments. This is occasionally useful as a converging function for R.converge: the first branch can produce a function while the remaining branches produce values to be passed to that function as its arguments.

Example

R.call(R.add, 1, 2); //=> 3

     var indentN = R.pipe(R.repeat(' '),
                          R.join(''),
                          R.replace(/^(?!$)/gm));

     var format = R.converge(R.call, [
                                 R.pipe(R.prop('indent'), indentN),
                                 R.prop('value')
                             ]);

     format({indent: 2, value: 'foo\nbar\nbaz\n'}); //=> '  foo\n  bar\n  baz\n'

Arguments

fn: Function

The function to apply to the remaining arguments.

args: ...*

Any number of positional arguments.

Returns

*