Skip to content

Instantly share code, notes, and snippets.

@jsonberry

jsonberry/tapLog.ts

Last active Jan 9, 2019
Embed
What would you like to do?
rxjs-toolkit examples
import { of } from 'rxjs';
import { tapLog } from 'rxjs-toolkit';
of('hello').pipe(
tapLog(), // log out whatever the signal is, so "hello"
tapLog('labelFoo') // give it a label, { labelFoo: "hello" }
).subscribe()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment