Determines whether all elements of an observable sequence satisfy a condition.
predicate
(Function
): A function to test each element for a condition.[thisArg]
(Function
): Object to use as this when executing callback.
(Observable
): An observable sequence containing a single element determining whether all elements in the source sequence pass the test in the specified predicate.
var source = Rx.Observable.of(1,2,3,4,5)
.every(function (x) {
return x < 6;
});
var subscription = source.subscribe(
function (x) {
console.log('Next: %s', x);
},
function (err) {
console.log('Error: %s', err);
},
function () {
console.log('Completed');
});
// => Next: true
// => Completed
File:
Dist:
Prerequisites:
NPM Packages:
NuGet Packages:
Unit Tests: