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

utils/tap
v1.1.0
1.1.0
1.0.0
MIT
PUBLIC
3
Build: fail
BuildFail
Build Status: fail
Runs the given function with the supplied object, then returns the object

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

tap (fn:Function, x:*) : *

Runs the given function with the supplied object, then returns the object.

Acts as a transducer if a transformer is given as second parameter.

Example

var sayX = x => console.log('x is ' + x);
     R.tap(sayX, 100); //=> 100
     // logs 'x is 100'

Arguments

fn: Function

The function to call with `x`. The return value of `fn` will be thrown away.

x: *

Returns

*

`x`.