Skip to content

Instantly share code, notes, and snippets.

@caroso1222
Created January 9, 2019 05:20
Show Gist options
  • Save caroso1222/263c66a042be4b048b428286976c0619 to your computer and use it in GitHub Desktop.
Save caroso1222/263c66a042be4b048b428286976c0619 to your computer and use it in GitHub Desktop.
rxjs-log-usage.ts
import { log } from '/path/to/utils/operators';
const source = of(1, 2, 3, 4);
source.pipe(
log(),
map(v => v ** 2),
log(),
filter(v => v > 5),
log()
).subscribe(/* noop */)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment