2018-11-22 16:41:46 +01:00
|
|
|
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
var Observable_1 = require("../Observable");
|
|
|
|
var subscribeToArray_1 = require("../util/subscribeToArray");
|
2019-06-04 14:29:48 +02:00
|
|
|
var scheduleArray_1 = require("../scheduled/scheduleArray");
|
2018-11-22 16:41:46 +01:00
|
|
|
function fromArray(input, scheduler) {
|
|
|
|
if (!scheduler) {
|
|
|
|
return new Observable_1.Observable(subscribeToArray_1.subscribeToArray(input));
|
|
|
|
}
|
|
|
|
else {
|
2019-06-04 14:29:48 +02:00
|
|
|
return scheduleArray_1.scheduleArray(input, scheduler);
|
2018-11-22 16:41:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
exports.fromArray = fromArray;
|
2019-06-04 14:29:48 +02:00
|
|
|
//# sourceMappingURL=fromArray.js.map
|