1.0.1 • Published 9 years ago
@javiercejudo/tap v1.0.1
tap
tap(x, y) == y(x)
Install
npm i @javiercejudo/tap
Usage
const tap = require('tap');
const plus1 = x => x + 1;
const times5 = x => 5 * x;
[plus1, times5].reduce(tap, 3); // => 20
See spec.
1.0.1
9 years ago