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.

concat.js 682B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var isScheduler_1 = require("../util/isScheduler");
  4. var of_1 = require("./of");
  5. var from_1 = require("./from");
  6. var concatAll_1 = require("../operators/concatAll");
  7. function concat() {
  8. var observables = [];
  9. for (var _i = 0; _i < arguments.length; _i++) {
  10. observables[_i] = arguments[_i];
  11. }
  12. if (observables.length === 1 || (observables.length === 2 && isScheduler_1.isScheduler(observables[1]))) {
  13. return from_1.from(observables[0]);
  14. }
  15. return concatAll_1.concatAll()(of_1.of.apply(void 0, observables));
  16. }
  17. exports.concat = concat;
  18. //# sourceMappingURL=concat.js.map