From 33da064ed119edb2aa5e9589260013e89cc25197 Mon Sep 17 00:00:00 2001 From: productdevbook Date: Tue, 14 Jan 2025 22:24:10 +0300 Subject: [PATCH] chore: lint --- packages/kit/src/utils.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/kit/src/utils.ts b/packages/kit/src/utils.ts index 4352d25ea5..7eeade52d6 100644 --- a/packages/kit/src/utils.ts +++ b/packages/kit/src/utils.ts @@ -13,7 +13,9 @@ export function filterInPlace (array: T[], predicate: (item: T, index: number for (let i = array.length; i--; i >= 0) { if (!predicate(array[i]!, i, array)) { const last = --array.length - if (i < last) { array[i] = array[last]! } + if (i < last) { + array[i] = array[last]! + } } } return array