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

12 lines
478 B
JavaScript
Raw Normal View History

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';
export function mergeMapTo(innerObservable, resultSelector, concurrent = Infinity) {
if (isFunction(resultSelector)) {
2022-01-21 08:28:41 +00:00
return mergeMap(() => innerObservable, resultSelector, concurrent);
}
if (typeof resultSelector === 'number') {
concurrent = resultSelector;
}
return mergeMap(() => innerObservable, concurrent);
}
//# sourceMappingURL=mergeMapTo.js.map