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.

startWith.js 685B

1234567891011121314151617181920
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var concat_1 = require("../observable/concat");
  4. var isScheduler_1 = require("../util/isScheduler");
  5. function startWith() {
  6. var array = [];
  7. for (var _i = 0; _i < arguments.length; _i++) {
  8. array[_i] = arguments[_i];
  9. }
  10. var scheduler = array[array.length - 1];
  11. if (isScheduler_1.isScheduler(scheduler)) {
  12. array.pop();
  13. return function (source) { return concat_1.concat(array, source, scheduler); };
  14. }
  15. else {
  16. return function (source) { return concat_1.concat(array, source); };
  17. }
  18. }
  19. exports.startWith = startWith;
  20. //# sourceMappingURL=startWith.js.map