Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var pipeline1 = Rx.Observable.interval(500); // sends a waterdrop every 0,5s
var pipeline2 = Rx.Observable.interval(1000); // sends a waterdrop every second
.filter(drop => drop % 2 === 0)
.map(drop => drop + 100)
.forEach(d => console.log(d));
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.