wishthis/node_modules/rxjs/dist/esm/internal/operators/isEmpty.js

14 lines
466 B
JavaScript
Raw Normal View History

2022-06-08 10:36:39 +00:00
import { operate } from '../util/lift';
import { createOperatorSubscriber } from './OperatorSubscriber';
export function isEmpty() {
return operate((source, subscriber) => {
source.subscribe(createOperatorSubscriber(subscriber, () => {
subscriber.next(false);
subscriber.complete();
}, () => {
subscriber.next(true);
subscriber.complete();
}));
});
}
//# sourceMappingURL=isEmpty.js.map