2022-01-21 08:28:41 +00:00
|
|
|
import { mergeMap } from './mergeMap';
|
2022-06-08 10:36:39 +00:00
|
|
|
import { isFunction } from '../util/isFunction';
|
2022-01-21 08:28:41 +00:00
|
|
|
export function mergeMapTo(innerObservable, resultSelector, concurrent) {
|
2022-06-08 10:36:39 +00:00
|
|
|
if (concurrent === void 0) { concurrent = Infinity; }
|
|
|
|
if (isFunction(resultSelector)) {
|
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-06-08 10:36:39 +00:00
|
|
|
//# sourceMappingURL=mergeMapTo.js.map
|