"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.raceWith = void 0;
const race_js_1 = require("../observable/race.js");
const Observable_js_1 = require("../Observable.js");
const identity_js_1 = require("../util/identity.js");
function raceWith(...otherSources) {
    return !otherSources.length
        ? identity_js_1.identity
        : (source) => new Observable_js_1.Observable((subscriber) => {
            (0, race_js_1.raceInit)([source, ...otherSources])(subscriber);
        });
}
exports.raceWith = raceWith;//# sourceMappingURL=http://go/sourcemap/sourcemaps/cd1c87ff9b66021918fb9731605f8d1d5fd2f0b0/node_modules/rxjs/dist/cjs/internal/operators/raceWith.js.map