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.

combineLatest.js 892B

12345678910111213141516171819202122
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var isArray_1 = require("../util/isArray");
  4. var combineLatest_1 = require("../observable/combineLatest");
  5. var from_1 = require("../observable/from");
  6. var none = {};
  7. function combineLatest() {
  8. var observables = [];
  9. for (var _i = 0; _i < arguments.length; _i++) {
  10. observables[_i] = arguments[_i];
  11. }
  12. var project = null;
  13. if (typeof observables[observables.length - 1] === 'function') {
  14. project = observables.pop();
  15. }
  16. if (observables.length === 1 && isArray_1.isArray(observables[0])) {
  17. observables = observables[0].slice();
  18. }
  19. return function (source) { return source.lift.call(from_1.from([source].concat(observables)), new combineLatest_1.CombineLatestOperator(project)); };
  20. }
  21. exports.combineLatest = combineLatest;
  22. //# sourceMappingURL=combineLatest.js.map