mirror of
https://github.com/tenrok/vue-meta.git
synced 2026-06-22 04:30:34 +03:00
refactor: prefer forEach
This commit is contained in:
committed by
Alexander Lichter
parent
b7ee0409ea
commit
4dafffea4e
@@ -48,9 +48,7 @@ export default function getMetaInfo({ keyName, tagIDKeyName, metaTemplateKeyName
|
|||||||
if (index === 0) {
|
if (index === 0) {
|
||||||
ensureIsArray(info, disableKey)
|
ensureIsArray(info, disableKey)
|
||||||
} else if (index === 1) {
|
} else if (index === 1) {
|
||||||
for (const key in info[disableKey]) {
|
info[disableKey].forEach(key => ensureIsArray(info[disableKey], key))
|
||||||
ensureIsArray(info[disableKey], key)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user