Skip to content

Instantly share code, notes, and snippets.

@Yago
Created May 2, 2017 07:40
Show Gist options
  • Save Yago/817f11ac78d25769073c649e26e06c84 to your computer and use it in GitHub Desktop.
Save Yago/817f11ac78d25769073c649e26e06c84 to your computer and use it in GitHub Desktop.
const stream = Rx.Observable.from([2, 4, 6, 8, 10, 12]);
stream
.map(x => x * 2)
.filter(x => x % 3 === 0)
.skip(1)
.subscribe(
(x) => { console.log(x); },
(err) => { console.error(err); },
() => { console.log('Cypher ?'); }
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment