UNPKG

rxjs

Version:

Reactive Extensions for modern JavaScript

14 lines 458 B
import { operate } from '../util/lift'; import { OperatorSubscriber } from './OperatorSubscriber'; export function isEmpty() { return operate((source, subscriber) => { source.subscribe(new OperatorSubscriber(subscriber, () => { subscriber.next(false); subscriber.complete(); }, () => { subscriber.next(true); subscriber.complete(); })); }); } //# sourceMappingURL=isEmpty.js.map