source: trip-planner-front/node_modules/rxjs/_esm5/internal/observable/fromIterable.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: 609 bytes
Line 
1/** PURE_IMPORTS_START _Observable,_util_subscribeToIterable,_scheduled_scheduleIterable PURE_IMPORTS_END */
2import { Observable } from '../Observable';
3import { subscribeToIterable } from '../util/subscribeToIterable';
4import { scheduleIterable } from '../scheduled/scheduleIterable';
5export function fromIterable(input, scheduler) {
6 if (!input) {
7 throw new Error('Iterable cannot be null');
8 }
9 if (!scheduler) {
10 return new Observable(subscribeToIterable(input));
11 }
12 else {
13 return scheduleIterable(input, scheduler);
14 }
15}
16//# sourceMappingURL=fromIterable.js.map
Note: See TracBrowser for help on using the repository browser.