mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 01:15:58 +00:00
chore: lint
This commit is contained in:
parent
3d36c99f61
commit
33da064ed1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user