Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_.each(style, (value, key: string) => {
if (_.isObject(value)) {
style[key] = appendUnits(value);
} else {
style[key] = appendPxIfNeeded(key, value);
}
});
return style;