Merges the specified observable sequences into one observable sequence by emitting a list with the elements of the observable sequences at corresponding indexes.
args
(Arguments | Array): Observable sources.
(Observable
): An observable sequence containing lists of elements at corresponding indexes.
var range = Rx.Observable.range(0, 5);
var source = Rx.Observable.zipArray(
range,
range.skip(1),
range.skip(2)
);
var subscription = source.subscribe(
function (x) {
console.log('Next: ' + x);
},
function (err) {
console.log('Error: ' + err);
},
function () {
console.log('Completed');
});
// => Next: 0,1,2
// => Next: 1,2,3
// => Next: 2,3,4
// => Completed
File:
Dist:
Prerequisites:
rx
.experimental.jsrx.js
|rx.compat.js
|rx.lite.js
|rx.lite.compat.js
NPM Packages:
NuGet Packages:
Unit Tests: