mergeMapTo.js 478 B

123456789101112
  1. import { mergeMap } from './mergeMap';
  2. import { isFunction } from '../util/isFunction';
  3. export function mergeMapTo(innerObservable, resultSelector, concurrent = Infinity) {
  4. if (isFunction(resultSelector)) {
  5. return mergeMap(() => innerObservable, resultSelector, concurrent);
  6. }
  7. if (typeof resultSelector === 'number') {
  8. concurrent = resultSelector;
  9. }
  10. return mergeMap(() => innerObservable, concurrent);
  11. }
  12. //# sourceMappingURL=mergeMapTo.js.map