From 6572bd0951d506e4a91366da2ae8d710d5a13a93 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 14 Jan 2024 16:54:45 -0400 Subject: use atOffset() and .at() where appropriate --- src/data/composite/data/withSortedList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/data/composite') diff --git a/src/data/composite/data/withSortedList.js b/src/data/composite/data/withSortedList.js index 882907f5..4ab0dfb1 100644 --- a/src/data/composite/data/withSortedList.js +++ b/src/data/composite/data/withSortedList.js @@ -102,7 +102,7 @@ export default templateCompositeFrom({ if (empty(accumulator)) { accumulator.push(0); } else { - const last = accumulator[accumulator.length - 1]; + const last = accumulator.at(-1); if (collapseEqual) { accumulator.push(last); } else { -- cgit 1.3.0-6-gf8a5