mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
Support slice
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
db515d48c1
commit
35f6043d06
@ -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 New Issue
Block a user