mergeMapTo.js 730 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.mergeMapTo = void 0;
  4. var mergeMap_1 = require("./mergeMap");
  5. var isFunction_1 = require("../util/isFunction");
  6. function mergeMapTo(innerObservable, resultSelector, concurrent) {
  7. if (concurrent === void 0) { concurrent = Infinity; }
  8. if (isFunction_1.isFunction(resultSelector)) {
  9. return mergeMap_1.mergeMap(function () { return innerObservable; }, resultSelector, concurrent);
  10. }
  11. if (typeof resultSelector === 'number') {
  12. concurrent = resultSelector;
  13. }
  14. return mergeMap_1.mergeMap(function () { return innerObservable; }, concurrent);
  15. }
  16. exports.mergeMapTo = mergeMapTo;
  17. //# sourceMappingURL=mergeMapTo.js.map