subscribeToArray.js 254 B

1234567
  1. export const subscribeToArray = (array) => (subscriber) => {
  2. for (let i = 0, len = array.length; i < len && !subscriber.closed; i++) {
  3. subscriber.next(array[i]);
  4. }
  5. subscriber.complete();
  6. };
  7. //# sourceMappingURL=subscribeToArray.js.map