https://github.com/javiercejudo/tap
tap(x, y) == y(x)
https://github.com/javiercejudo/tap
Last synced: 2 months ago
JSON representation
tap(x, y) == y(x)
- Host: GitHub
- URL: https://github.com/javiercejudo/tap
- Owner: javiercejudo
- License: mit
- Created: 2015-11-08T02:08:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-27T08:44:27.000Z (over 8 years ago)
- Last Synced: 2025-03-15T01:36:40.221Z (3 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@javiercejudo/tap
- Size: 6.84 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tap
[](https://travis-ci.org/javiercejudo/tap)
[](https://coveralls.io/r/javiercejudo/tap?branch=master)
[](https://codeclimate.com/github/javiercejudo/tap)tap(x, y) == y(x)
## Install
npm i @javiercejudo/tap
## Usage
```js
const tap = require('tap');const plus1 = x => x + 1;
const times5 = x => 5 * x;[plus1, times5].reduce(tap, 3); // => 20
```See [spec](test/spec.js).