wishthis/node_modules/rxjs/dist/cjs/internal/operators/isEmpty.js
2022-04-07 09:06:43 +02:00

18 lines
No EOL
628 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isEmpty = void 0;
var lift_1 = require("../util/lift");
var OperatorSubscriber_1 = require("./OperatorSubscriber");
function isEmpty() {
return lift_1.operate(function (source, subscriber) {
source.subscribe(OperatorSubscriber_1.createOperatorSubscriber(subscriber, function () {
subscriber.next(false);
subscriber.complete();
}, function () {
subscriber.next(true);
subscriber.complete();
}));
});
}
exports.isEmpty = isEmpty;
//# sourceMappingURL=isEmpty.js.map