switchMapTo.js 319 B

123456
  1. import { switchMap } from './switchMap';
  2. import { isFunction } from '../util/isFunction';
  3. export function switchMapTo(innerObservable, resultSelector) {
  4. return isFunction(resultSelector) ? switchMap(() => innerObservable, resultSelector) : switchMap(() => innerObservable);
  5. }
  6. //# sourceMappingURL=switchMapTo.js.map