2019-06-04 14:29:48 +02:00
|
|
|
/** PURE_IMPORTS_START _Observable,_util_subscribeToArray,_scheduled_scheduleArray PURE_IMPORTS_END */
|
2018-11-22 16:41:46 +01:00
|
|
|
import { Observable } from '../Observable';
|
|
|
|
import { subscribeToArray } from '../util/subscribeToArray';
|
2019-06-04 14:29:48 +02:00
|
|
|
import { scheduleArray } from '../scheduled/scheduleArray';
|
2018-11-22 16:41:46 +01:00
|
|
|
export function fromArray(input, scheduler) {
|
|
|
|
if (!scheduler) {
|
|
|
|
return new Observable(subscribeToArray(input));
|
|
|
|
}
|
|
|
|
else {
|
2019-06-04 14:29:48 +02:00
|
|
|
return scheduleArray(input, scheduler);
|
2018-11-22 16:41:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=fromArray.js.map
|