Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(ruleset, value, property) => {
if (isObject(value)) {
if (isNestedSelector(property)) {
renderer._renderStyleToCache(
className,
value,
pseudo + normalizeNestedProperty(property),
media
)
} else if (isMediaQuery(property)) {
const combinedMediaQuery = generateCombinedMediaQuery(
media,
property.slice(6).trim()
)
renderer._renderStyleToCache(
className,
value,
pseudo,
combinedMediaQuery
)
} else {
// TODO: warning
}
} else if (!isUndefinedValue(value)) {
ruleset[property] = value
}