mergeMapTo.js 604 B

123456789101112131415
  1. /** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */
  2. import { mergeMap } from './mergeMap';
  3. export function mergeMapTo(innerObservable, resultSelector, concurrent) {
  4. if (concurrent === void 0) {
  5. concurrent = Number.POSITIVE_INFINITY;
  6. }
  7. if (typeof resultSelector === 'function') {
  8. return mergeMap(function () { return innerObservable; }, resultSelector, concurrent);
  9. }
  10. if (typeof resultSelector === 'number') {
  11. concurrent = resultSelector;
  12. }
  13. return mergeMap(function () { return innerObservable; }, concurrent);
  14. }
  15. //# sourceMappingURL=mergeMapTo.js.map