skipUntil.js 808B

12345678910111213141516171819
  1. /** PURE_IMPORTS_START .._operators_skipUntil PURE_IMPORTS_END */
  2. import { skipUntil as higherOrder } from '../operators/skipUntil';
  3. /**
  4. * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.
  5. *
  6. * <img src="./img/skipUntil.png" width="100%">
  7. *
  8. * @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to
  9. * be mirrored by the resulting Observable.
  10. * @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits
  11. * an item, then emits the remaining items.
  12. * @method skipUntil
  13. * @owner Observable
  14. */
  15. export function skipUntil(notifier) {
  16. return higherOrder(notifier)(this);
  17. }
  18. //# sourceMappingURL=skipUntil.js.map