UNPKG

delta-store

Version:
23 lines 846 B
"use strict"; var ArrayChangeRecordIterator = (function () { function ArrayChangeRecordIterator(changeRecords, nextIndex) { if (nextIndex === void 0) { nextIndex = 0; } this.changeRecords = changeRecords; this.nextIndex = nextIndex; this.length = changeRecords.length; } ArrayChangeRecordIterator.prototype.next = function () { if (!this.hasNext()) { throw 'No more change records found'; } var nextValue = this.changeRecords[this.nextIndex]; this.nextIndex++; return nextValue; }; ArrayChangeRecordIterator.prototype.hasNext = function () { return this.nextIndex < this.length; }; return ArrayChangeRecordIterator; }()); exports.ArrayChangeRecordIterator = ArrayChangeRecordIterator; //# sourceMappingURL=RepositoryApi.js.map