source: trip-planner-front/node_modules/rxjs/_esm2015/internal/operators/isEmpty.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 676 bytes
Line 
1import { Subscriber } from '../Subscriber';
2export function isEmpty() {
3 return (source) => source.lift(new IsEmptyOperator());
4}
5class IsEmptyOperator {
6 call(observer, source) {
7 return source.subscribe(new IsEmptySubscriber(observer));
8 }
9}
10class IsEmptySubscriber extends Subscriber {
11 constructor(destination) {
12 super(destination);
13 }
14 notifyComplete(isEmpty) {
15 const destination = this.destination;
16 destination.next(isEmpty);
17 destination.complete();
18 }
19 _next(value) {
20 this.notifyComplete(false);
21 }
22 _complete() {
23 this.notifyComplete(true);
24 }
25}
26//# sourceMappingURL=isEmpty.js.map
Note: See TracBrowser for help on using the repository browser.