Front end of the Slack clone application.

every.js 948B

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