combineLatest

accepts 2+ input streams, a project function (optional)

  • ❯Whenever any input stream emits a value, it combines the latest values emitted by each input stream

returns a new stream of combined values

merge

accepts 2+ input streams

  • ❯It interleaves the values of the input streams

returns a new stream of interleaved values

Published on Monday, 30 Oct. 2017
Revised on Monday, 8 Oct. 2018

combineLatest / combine

This operator is called combineLatest in RxJS or simply combine in other reactive streams library.

See also


Compare all combining operators - The Illustrated Book of RxJS


Launchpad for RxJS

Cédric Soulas Follow Hire me

Freelance Developer Advocate. Motion graphics with code. JavaScript and Elm. cedricsoulas.com

Subscribe to reactive.how newsletter

Join the Newsletter

Learn Reactive Programming and stay up-to-date:

Receive my latest news, product updates and programming visualizations. You can unsubscribe at any time.

Highlights

@CedricSoulas

Making an illustrated book!

The Illustrated Book of RxJS

Learn more →