source: trip-planner-front/node_modules/rxjs/internal/observable/fromIterable.js@ 6a80231

Last change on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 663 bytes
RevLine 
[6a3a178]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var Observable_1 = require("../Observable");
4var subscribeToIterable_1 = require("../util/subscribeToIterable");
5var scheduleIterable_1 = require("../scheduled/scheduleIterable");
6function 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}
17exports.fromIterable = fromIterable;
18//# sourceMappingURL=fromIterable.js.map
Note: See TracBrowser for help on using the repository browser.