Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Blog - Using Observables to make our app work with barcode scanners
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
You can’t perform that action at this time.