skipWhile.js 827 B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var operators_1 = require("rxjs/operators");
  4. /**
  5. * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds
  6. * true, but emits all further source items as soon as the condition becomes false.
  7. *
  8. * <img src="./img/skipWhile.png" width="100%">
  9. *
  10. * @param {Function} predicate - A function to test each item emitted from the source Observable.
  11. * @return {Observable<T>} An Observable that begins emitting items emitted by the source Observable when the
  12. * specified predicate becomes false.
  13. * @method skipWhile
  14. * @owner Observable
  15. */
  16. function skipWhile(predicate) {
  17. return operators_1.skipWhile(predicate)(this);
  18. }
  19. exports.skipWhile = skipWhile;
  20. //# sourceMappingURL=skipWhile.js.map