Created
February 23, 2019 22:55
-
-
Save kosich/d03c66991792022c97d808445acf2a7b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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