Last active
March 22, 2017 08:07
-
-
Save nicoespeon/3bd17a5fb7d6f8f3fd43e5f2e37dbf3c to your computer and use it in GitHub Desktop.
Blog - Using Observables to make our app work with barcode scanners
This file contains hidden or 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 keyCode$ = Rx.Observable.fromEvent(document, "keypress") | |
// ---(ev)--(ev)--------(ev)---> | |
.pluck('keyCode') | |
// ---(43)--(51)--------(13)---> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment