combineLatest
Combines multiple Observables to create an Observable whose values are calculated from the latest values of each of its input Observables.
This method relies on combineLatestOperator of rxjs.
The main difference with combineLatestOperator is in case of empty parameters. If the parameter is empty (empty array or empty object), the result will be also empty.
ATTENTION: this version doesn’t support scheduler nor mapper as last
argument like in combineLatestOperator.
Available since v1.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
sources | readonly [ObservableInputTuple<A>] |
Returns
Section titled “Returns”Observable<A> —
Examples
Section titled “Examples”Combine array of observables
Section titled “Combine array of observables”Combines an array of observables into one that emits arrays of their latest values.
Handle empty array
Section titled “Handle empty array”Returns an observable that emits an empty array when given no sources.
