Rx.Observable.prototype.combineLatest(...args, [resultSelector])
Merges the specified observable sequences into one observable sequence by using the selector function whenever any of the observable sequences produces an element. This can be in the form of an argument list of observables or an array. If the result selector is omitted, a list with the elements will be yielded.
Arguments
args
(arguments | Array): An array or arguments of Observable sequences.[resultSelector]
(Function
): Function to invoke whenever either of the sources produces an element. If omitted, a list with the elements will be yielded.
Returns
(Observable
): An observable sequence containing the result of combining elements of the sources using the specified result selector function.