subscribeToArray.js 350 B

123456789
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.subscribeToArray = function (array) { return function (subscriber) {
  4. for (var i = 0, len = array.length; i < len && !subscriber.closed; i++) {
  5. subscriber.next(array[i]);
  6. }
  7. subscriber.complete();
  8. }; };
  9. //# sourceMappingURL=subscribeToArray.js.map