chore: lint

This commit is contained in:
productdevbook 2025-01-14 22:24:10 +03:00
parent 3d36c99f61
commit 33da064ed1

View File

@ -13,7 +13,9 @@ export function filterInPlace<T> (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