wishthis/node_modules/rxjs/dist/cjs/internal/operators/mergeMapTo.js

17 lines
730 B
JavaScript
Raw Normal View History

2022-01-21 08:28:41 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
2022-04-07 07:06:43 +00:00
exports.mergeMapTo = void 0;
2022-01-21 08:28:41 +00:00
var mergeMap_1 = require("./mergeMap");
2022-04-07 07:06:43 +00:00
var isFunction_1 = require("../util/isFunction");
2022-01-21 08:28:41 +00:00
function mergeMapTo(innerObservable, resultSelector, concurrent) {
2022-04-07 07:06:43 +00:00
if (concurrent === void 0) { concurrent = Infinity; }
if (isFunction_1.isFunction(resultSelector)) {
2022-01-21 08:28:41 +00:00
return mergeMap_1.mergeMap(function () { return innerObservable; }, resultSelector, concurrent);
}
if (typeof resultSelector === 'number') {
concurrent = resultSelector;
}
return mergeMap_1.mergeMap(function () { return innerObservable; }, concurrent);
}
exports.mergeMapTo = mergeMapTo;
//# sourceMappingURL=mergeMapTo.js.map