isEmpty.js 628 B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.isEmpty = void 0;
  4. var lift_1 = require("../util/lift");
  5. var OperatorSubscriber_1 = require("./OperatorSubscriber");
  6. function isEmpty() {
  7. return lift_1.operate(function (source, subscriber) {
  8. source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
  9. subscriber.next(false);
  10. subscriber.complete();
  11. }, function () {
  12. subscriber.next(true);
  13. subscriber.complete();
  14. }));
  15. });
  16. }
  17. exports.isEmpty = isEmpty;
  18. //# sourceMappingURL=isEmpty.js.map