diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js b/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js new file mode 100644 index 0000000..7d1cfb9 --- /dev/null +++ b/node_modules/rxjs/dist/esm/internal/operators/switchMapTo.js @@ -0,0 +1,6 @@ +import { switchMap } from './switchMap'; +import { isFunction } from '../util/isFunction'; +export function switchMapTo(innerObservable, resultSelector) { + return isFunction(resultSelector) ? switchMap(() => innerObservable, resultSelector) : switchMap(() => innerObservable); +} +//# sourceMappingURL=switchMapTo.js.map
\ No newline at end of file |
