fromArray.js 551 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var Observable_1 = require("../Observable");
  4. var subscribeToArray_1 = require("../util/subscribeToArray");
  5. var scheduleArray_1 = require("../scheduled/scheduleArray");
  6. function fromArray(input, scheduler) {
  7. if (!scheduler) {
  8. return new Observable_1.Observable(subscribeToArray_1.subscribeToArray(input));
  9. }
  10. else {
  11. return scheduleArray_1.scheduleArray(input, scheduler);
  12. }
  13. }
  14. exports.fromArray = fromArray;
  15. //# sourceMappingURL=fromArray.js.map