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


zip vs combineLatest

Subscribe to reactive.how newsletter

Receive my latest news, tips and animations:

Learn Reactive Programming and stay up-to-date:
Cédric Soulas

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