2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-01 14:14:04 +03:00

refactor: prefer forEach

This commit is contained in:
pimlie
2019-03-08 14:32:42 +01:00
committed by Alexander Lichter
parent b7ee0409ea
commit 4dafffea4e
+1 -3
View File
@@ -48,9 +48,7 @@ export default function getMetaInfo({ keyName, tagIDKeyName, metaTemplateKeyName
if (index === 0) {
ensureIsArray(info, disableKey)
} else if (index === 1) {
for (const key in info[disableKey]) {
ensureIsArray(info[disableKey], key)
}
info[disableKey].forEach(key => ensureIsArray(info[disableKey], key))
}
}