Created
April 26, 2017 05:15
-
-
Save Ibro/34355803d2b43d143ce05cd6f6c45583 to your computer and use it in GitHub Desktop.
RxJS fromEvent - Take 10 - Subscribing to mouse events - Coding Blast - www.codingblast.com
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
import {Observable} from 'rxjs'; | |
Observable | |
.fromEvent(document, 'mousemove') | |
.take(10) | |
.forEach(function next(value) { | |
console.log('next: ', value); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment