Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

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