Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

every.d.ts 943B

123456789101112131415161718192021
  1. import { Observable } from '../Observable';
  2. import { OperatorFunction } from '../types';
  3. /**
  4. * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.
  5. *
  6. * ## Example
  7. * A simple example emitting true if all elements are less than 5, false otherwise
  8. * ```javascript
  9. * of(1, 2, 3, 4, 5, 6).pipe(
  10. * every(x => x < 5),
  11. * )
  12. * .subscribe(x => console.log(x)); // -> false
  13. * ```
  14. *
  15. * @param {function} predicate A function for determining if an item meets a specified condition.
  16. * @param {any} [thisArg] Optional object to use for `this` in the callback.
  17. * @return {Observable} An Observable of booleans that determines if all items of the source Observable meet the condition specified.
  18. * @method every
  19. * @owner Observable
  20. */
  21. export declare function every<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean, thisArg?: any): OperatorFunction<T, boolean>;