Skip to content

Instantly share code, notes, and snippets.

@nitayneeman
Last active September 16, 2017 13:55
Show Gist options
  • Select an option

  • Save nitayneeman/17f83cc397f1f11fa08bd2be394803a7 to your computer and use it in GitHub Desktop.

Select an option

Save nitayneeman/17f83cc397f1f11fa08bd2be394803a7 to your computer and use it in GitHub Desktop.
Rx.Observable
.range(1, 25)
.last((value) => value % 3 === 0)
.subscribe(
(value) => console.log(`Emitted value: ${value}`),
(error) => console.error(error),
() => console.log('Completed')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment