forked from mystiq/hydrogen-web
Support slice
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
db515d48c1
commit
35f6043d06
1 changed files with 4 additions and 0 deletions
|
@ -119,6 +119,10 @@ export class SortedMapList extends BaseObservableList {
|
|||
return this._sourceMap.size;
|
||||
}
|
||||
|
||||
slice(start, end) {
|
||||
return this._sortedPairs.slice(start, end);
|
||||
}
|
||||
|
||||
[Symbol.iterator]() {
|
||||
const it = this._sortedPairs.values();
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue