Debian Codegraph @

node/rxjs/dist/cjs/internal/operators/switchMapTo.js

raw
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.switchMapTo = void 0;
4 var switchMap_1 = require("./switchMap");
5 var isFunction_1 = require("../util/isFunction");
6 function switchMapTo(innerObservable, resultSelector) {
7 return isFunction_1.isFunction(resultSelector) ? switchMap_1.switchMap(function () { return innerObservable; }, resultSelector) : switchMap_1.switchMap(function () { return innerObservable; });
8 }
9 exports.switchMapTo = switchMapTo;
10 //# sourceMappingURL=switchMapTo.js.map