isEmpty.js 466 B

1234567891011121314
  1. import { operate } from '../util/lift';
  2. import { createOperatorSubscriber } from './OperatorSubscriber';
  3. export function isEmpty() {
  4. return operate((source, subscriber) => {
  5. source.subscribe(createOperatorSubscriber(subscriber, () => {
  6. subscriber.next(false);
  7. subscriber.complete();
  8. }, () => {
  9. subscriber.next(true);
  10. subscriber.complete();
  11. }));
  12. });
  13. }
  14. //# sourceMappingURL=isEmpty.js.map