wishthis/node_modules/rxjs/_esm5/internal/operators/mergeMapTo.js

16 lines
604 B
JavaScript
Raw Normal View History

2022-05-29 09:24:36 +00:00
/** PURE_IMPORTS_START _mergeMap PURE_IMPORTS_END */
2022-01-21 08:28:41 +00:00
import { mergeMap } from './mergeMap';
export function mergeMapTo(innerObservable, resultSelector, concurrent) {
2022-05-29 09:24:36 +00:00
if (concurrent === void 0) {
concurrent = Number.POSITIVE_INFINITY;
}
if (typeof resultSelector === 'function') {
2022-01-21 08:28:41 +00:00
return mergeMap(function () { return innerObservable; }, resultSelector, concurrent);
}
if (typeof resultSelector === 'number') {
concurrent = resultSelector;
}
return mergeMap(function () { return innerObservable; }, concurrent);
}
2022-05-29 09:24:36 +00:00
//# sourceMappingURL=mergeMapTo.js.map