Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // require() some stuff from npm (like you were using browserify)
- // and then hit Run Code to run it on the right
- var Rx = require('rx');
- var source = Rx.Observable.fromArray([1,2,3,4]).map(function(x){
- return x + 1;
- });
- source.subscribe(function(x) {
- alert(x);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement