mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +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;
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user