every

signature: every(predicate: function, thisArg: any): Observable

Example 1: Some values false
Example 2: All values true
  1. import { every } from 'rxjs/operators';
  2. import { of } from 'rxjs/observable/of';
  3. //emit 5 values
  4. const allEvens = of(2, 4, 6, 8, 10);
  5. every(val => val % 2 === 0)
  6. );
  7. //output: true

Additional Resources