####signature: every(predicate: function, thisArg: any): Observable
The every operator accepts a predicate function, testing every emission from the source against this function. If the result of the predicate for each emission is truthy the operator will return true, if not, it will return false. Note that the every operator will only emit a value when the source completes.
//emit 5 values
const source = Rx.Observable.of(1,2,3,4,5);
const example = source
//is every value even?
.every(val => val % 2 === 0)
//output: false
const subscribe = example.subscribe(val => console.log(val));//emit 5 values
const allEvens = Rx.Observable.of(2,4,6,8,10);
const example = allEvens
//is every value even?
.every(val => val % 2 === 0);
//output: true
const subscribe = example.subscribe(val => console.log(val));- every 📰 - Official docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/operator/every.ts