1.0.0 • Published 10 years ago
fauxet v1.0.0
npm install --save fauxetimport { 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.logimport { tap } from 'fauxet';
const myString = 'bar';
tap(myString, 'foo:') // "foo: bar" in the console1.0.0
10 years ago