Skip to content

Instantly share code, notes, and snippets.

@jocoone jocoone/rxjs-pipeline-1
Last active Feb 27, 2016

Embed
What would you like to do?
Rx.Observable.range(0, 10) //representing the pipeline
.filter(drop => drop % 2 === 0)
.map(drop => drop + 2)
.sum() // as in putting water in a bucket
.subscribe((bucket) => console.log(bucket)); // 30
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.