This is RxJS v 4. Find the latest version here
Determins whether two sequences are equal by comparing the elements pairwise using a specified equality comparer.
second
(Observable
|Promise
|Array
): Second observable sequence, Promise or array to compare.[comparer]
(Function
): Comparer used to compare elements of both sequences.
(Observable
): An observable sequence that contains a single element which indicates whether both sequences are of equal length and their corresponding elements are equal according to the specified equality comparer.
var source1 = Rx.Observable.return(42);
var source2 = Rx.Observable.return(42);
var source = source1.sequenceEqual(source2);
var subscription = source.subscribe(
function (x) {
console.log('Next: ' + x);
},
function (err) {
console.log('Error: ' + err);
},
function () {
console.log('Completed');
});
// => Next: true
// => Completed
File:
Dist:
Prerequisites:
NPM Packages:
NuGet Packages:
Unit Tests: