Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function resolveFallbackValues(style: Object): Object {
for (const property in style) {
const value = style[property]
if (Array.isArray(value)) {
style[property] = resolveArrayValue(property, value)
} else if (isObject(value)) {
style[property] = resolveFallbackValues(value)
}
}
return style
}
function resolveFallbackValues(style: Object): Object {
for (const property in style) {
const value = style[property]
if (Array.isArray(value)) {
style[property] = resolveArrayValue(property, value)
} else if (isPlainObject(value) && property !== 'fontFace') {
style[property] = resolveFallbackValues(value)
}
}
return style
}