diff options
Diffstat (limited to 'node_modules/rxjs/dist/esm/internal/operators/raceWith.js')
| -rw-r--r-- | node_modules/rxjs/dist/esm/internal/operators/raceWith.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/rxjs/dist/esm/internal/operators/raceWith.js b/node_modules/rxjs/dist/esm/internal/operators/raceWith.js new file mode 100644 index 0000000..ff63ee1 --- /dev/null +++ b/node_modules/rxjs/dist/esm/internal/operators/raceWith.js @@ -0,0 +1,11 @@ +import { raceInit } from '../observable/race'; +import { operate } from '../util/lift'; +import { identity } from '../util/identity'; +export function raceWith(...otherSources) { + return !otherSources.length + ? identity + : operate((source, subscriber) => { + raceInit([source, ...otherSources])(subscriber); + }); +} +//# sourceMappingURL=raceWith.js.map
\ No newline at end of file |
