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

utils/apply-to
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
1     DEPENDENCIES
Build: fail
BuildFail
Build Status: fail
Takes a value and applies a function to it

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

applyTo (x:*, f:Function) : *

Takes a value and applies a function to it.

This function is also known as the thrush combinator.

Example

var t42 = R.applyTo(42);
     t42(R.identity); //=> 42
     t42(R.add(1)); //=> 43

Arguments

x: *

The value

f: Function

The function to apply

Returns

*

The result of applying `f` to `x`