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

11 lines
455 B
JavaScript
Raw Normal View History

2022-01-21 08:28:41 +00:00
import { mergeMap } from './mergeMap';
2022-05-29 09:24:36 +00:00
export function mergeMapTo(innerObservable, resultSelector, concurrent = Number.POSITIVE_INFINITY) {
if (typeof resultSelector === 'function') {
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