2018-11-22 16:41:46 +01:00
|
|
|
export const subscribeToArray = (array) => (subscriber) => {
|
|
|
|
for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {
|
|
|
|
subscriber.next(array[i]);
|
|
|
|
}
|
2019-06-04 14:29:48 +02:00
|
|
|
subscriber.complete();
|
2018-11-22 16:41:46 +01:00
|
|
|
};
|
2019-06-04 14:29:48 +02:00
|
|
|
//# sourceMappingURL=subscribeToArray.js.map
|