frontend/.pnpm-store/v3/files/39/e5cf6a96189ade41a22576caedce36c6e771d9ce4a6394b083f560434cd788a18654c8e3772a4ba3a9ad67076d5310fddb1b6ada2640eb7571d68d7e6d8ab3

26 lines
676 B
Plaintext

import { Subscriber } from '../Subscriber';
export function isEmpty() {
return (source) => source.lift(new IsEmptyOperator());
}
class IsEmptyOperator {
call(observer, source) {
return source.subscribe(new IsEmptySubscriber(observer));
}
}
class IsEmptySubscriber extends Subscriber {
constructor(destination) {
super(destination);
}
notifyComplete(isEmpty) {
const destination = this.destination;
destination.next(isEmpty);
destination.complete();
}
_next(value) {
this.notifyComplete(false);
}
_complete() {
this.notifyComplete(true);
}
}
//# sourceMappingURL=isEmpty.js.map