Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

race.js 640B

123456789101112131415161718
  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