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

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

initial commit

  • Property mode set to 100644
File size: 499 bytes
Line 
1import { Observable } from '../Observable';
2import { subscribeToIterable } from '../util/subscribeToIterable';
3import { scheduleIterable } from '../scheduled/scheduleIterable';
4export function fromIterable(input, scheduler) {
5 if (!input) {
6 throw new Error('Iterable cannot be null');
7 }
8 if (!scheduler) {
9 return new Observable(subscribeToIterable(input));
10 }
11 else {
12 return scheduleIterable(input, scheduler);
13 }
14}
15//# sourceMappingURL=fromIterable.js.map
Note: See TracBrowser for help on using the repository browser.