Skip to content

Instantly share code, notes, and snippets.

@kosich
Created February 23, 2019 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kosich/d03c66991792022c97d808445acf2a7b to your computer and use it in GitHub Desktop.
Save kosich/d03c66991792022c97d808445acf2a7b to your computer and use it in GitHub Desktop.
const { rxObserver } = require('api/v0.3');
const { timer } = require('rxjs');
const { map, take } = require('rxjs/operators');
timer(0, 100)
.pipe(
take(5),
map(()=>Date.now())
)
.subscribe(rxObserver());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment