From 35f6043d06e2aedc3c91721cae097fae1fd7ad7b Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Sat, 3 Jul 2021 21:18:28 +0530 Subject: [PATCH] Support slice Signed-off-by: RMidhunSuresh --- src/observable/list/SortedMapList.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/observable/list/SortedMapList.js b/src/observable/list/SortedMapList.js index babf5c35..93bf415a 100644 --- a/src/observable/list/SortedMapList.js +++ b/src/observable/list/SortedMapList.js @@ -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 {