source: trip-planner-front/node_modules/rxjs/internal/observable/from.js@ fa375fe

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

initial commit

  • Property mode set to 100644
File size: 587 bytes
RevLine 
[6a3a178]1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var Observable_1 = require("../Observable");
4var subscribeTo_1 = require("../util/subscribeTo");
5var scheduled_1 = require("../scheduled/scheduled");
6function from(input, scheduler) {
7 if (!scheduler) {
8 if (input instanceof Observable_1.Observable) {
9 return input;
10 }
11 return new Observable_1.Observable(subscribeTo_1.subscribeTo(input));
12 }
13 else {
14 return scheduled_1.scheduled(input, scheduler);
15 }
16}
17exports.from = from;
18//# sourceMappingURL=from.js.map
Note: See TracBrowser for help on using the repository browser.