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.

fromIterable.js 663B

123456789101112131415161718
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var Observable_1 = require("../Observable");
  4. var subscribeToIterable_1 = require("../util/subscribeToIterable");
  5. var scheduleIterable_1 = require("../scheduled/scheduleIterable");
  6. function fromIterable(input, scheduler) {
  7. if (!input) {
  8. throw new Error('Iterable cannot be null');
  9. }
  10. if (!scheduler) {
  11. return new Observable_1.Observable(subscribeToIterable_1.subscribeToIterable(input));
  12. }
  13. else {
  14. return scheduleIterable_1.scheduleIterable(input, scheduler);
  15. }
  16. }
  17. exports.fromIterable = fromIterable;
  18. //# sourceMappingURL=fromIterable.js.map