Advertisement
Guest User

Untitled

a guest
May 23rd, 2015
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. // require() some stuff from npm (like you were using browserify)
  2. // and then hit Run Code to run it on the right
  3. var Rx = require('rx');
  4. var source = Rx.Observable.fromArray([1,2,3,4]).map(function(x){
  5. return x + 1;
  6. });
  7.  
  8. source.subscribe(function(x) {
  9. alert(x);
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement