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