11 lines
No EOL
382 B
JavaScript
11 lines
No EOL
382 B
JavaScript
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
|