raceWith.js 382 B

1234567891011
  1. import { raceInit } from '../observable/race';
  2. import { operate } from '../util/lift';
  3. import { identity } from '../util/identity';
  4. export function raceWith(...otherSources) {
  5. return !otherSources.length
  6. ? identity
  7. : operate((source, subscriber) => {
  8. raceInit([source, ...otherSources])(subscriber);
  9. });
  10. }
  11. //# sourceMappingURL=raceWith.js.map