Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / rxjs / _esm2015 / internal / operators / isEmpty.js
1 import { Subscriber } from '../Subscriber';
2 export function isEmpty() {
3     return (source) => source.lift(new IsEmptyOperator());
4 }
5 class IsEmptyOperator {
6     call(observer, source) {
7         return source.subscribe(new IsEmptySubscriber(observer));
8     }
9 }
10 class 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