combineLatest
accepts
2+
input streams,
a project
function (optional)
returns a new stream of combined values
zip
accepts
2+
input streams,
a project
function (optional)
returns a new stream of combined values
As you can see, ❚ zip
produces the first combined value only when both input streams have all emitted their first value.
While ❚ combineLatest
combines values whenever any input stream emits a value, ❚ zip
only combines each n-th values together.
See also
Compare all combining operators - The Illustrated Book of RxJS (40% off on Gumroad)
Freelance Developer Advocate. Motion graphics with code. JavaScript and Elm. cedricsoulas.com
Receive my latest news, product updates and programming visualizations. You can unsubscribe at any time.