mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 23:32:38 +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) {
|
for (let i = array.length; i--; i >= 0) {
|
||||||
if (!predicate(array[i]!, i, array)) {
|
if (!predicate(array[i]!, i, array)) {
|
||||||
const last = --array.length
|
const last = --array.length
|
||||||
if (i < last) { array[i] = array[last]! }
|
if (i < last) {
|
||||||
|
array[i] = array[last]!
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return array
|
return array
|
||||||
|
Loading…
Reference in New Issue
Block a user