Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
640 bytes
|
Line | |
---|
1 | "use strict";
|
---|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
---|
3 | var isArray_1 = require("../util/isArray");
|
---|
4 | var race_1 = require("../observable/race");
|
---|
5 | function race() {
|
---|
6 | var observables = [];
|
---|
7 | for (var _i = 0; _i < arguments.length; _i++) {
|
---|
8 | observables[_i] = arguments[_i];
|
---|
9 | }
|
---|
10 | return function raceOperatorFunction(source) {
|
---|
11 | if (observables.length === 1 && isArray_1.isArray(observables[0])) {
|
---|
12 | observables = observables[0];
|
---|
13 | }
|
---|
14 | return source.lift.call(race_1.race.apply(void 0, [source].concat(observables)));
|
---|
15 | };
|
---|
16 | }
|
---|
17 | exports.race = race;
|
---|
18 | //# sourceMappingURL=race.js.map |
---|
Note:
See
TracBrowser
for help on using the repository browser.