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

utils/compose
v1.0.0
1.0.0
MIT
PUBLIC
0
1     DEPENDENCIES
Build: none
BuildNone
Performs right-to-left function composition

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

compose (null.null.null.functions:...Function) : Function

Performs right-to-left function composition. The rightmost function may have any arity; the remaining functions must be unary.

Note: The result of compose is not automatically curried.

Example

var classyGreeting = (firstName, lastName) => "The name's " + lastName + ", " + firstName + " " + lastName
     var yellGreeting = R.compose(R.toUpper, classyGreeting);
     yellGreeting('James', 'Bond'); //=> "THE NAME'S BOND, JAMES BOND"

     R.compose(Math.abs, R.add(1), R.multiply(2))(-4) //=> 7

Argument

null.null.null.functions: ...Function

The functions to compose

Returns

Function