Support slice

Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
RMidhunSuresh 2021-07-03 21:18:28 +05:30
parent db515d48c1
commit 35f6043d06

View file

@ -119,6 +119,10 @@ export class SortedMapList extends BaseObservableList {
return this._sourceMap.size; return this._sourceMap.size;
} }
slice(start, end) {
return this._sortedPairs.slice(start, end);
}
[Symbol.iterator]() { [Symbol.iterator]() {
const it = this._sortedPairs.values(); const it = this._sortedPairs.values();
return { return {