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

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

initial commit

  • Property mode set to 100644
File size: 441 bytes
RevLine 
[6a3a178]1import { Observable } from '../Observable';
2import { subscribeTo } from '../util/subscribeTo';
3import { scheduled } from '../scheduled/scheduled';
4export function from(input, scheduler) {
5 if (!scheduler) {
6 if (input instanceof Observable) {
7 return input;
8 }
9 return new Observable(subscribeTo(input));
10 }
11 else {
12 return scheduled(input, scheduler);
13 }
14}
15//# sourceMappingURL=from.js.map
Note: See TracBrowser for help on using the repository browser.