1.0.0 • Published 8 years ago
fauxet v1.0.0
npm install --save fauxet
import { tap } from 'fauxet';
myPromise().then(i => doSomething('foo', tap(i)));
// Logs i to console without having to expand the return statement
// and adding a console.log
import { tap } from 'fauxet';
const myString = 'bar';
tap(myString, 'foo:') // "foo: bar" in the console
1.0.0
8 years ago