Created
March 28, 2017 09:02
-
-
Save stevermeister/8f30656f748a4559a19948ded09be712 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 clicks$ = Rx.Observable.fromEvent(document, 'click'); | |
const innerObservable$ = Rx.Observable.interval(1000); | |
clicks$.switchMap(event => innerObservable$) | |
.subscribe(val => console.log(val)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment