Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return order.reduce((acc, key) => {
const newKey = `--mdc-theme-${toDashCase(key)}`;
// @ts-ignore
acc[newKey] = merged[newKey];
return acc;
}, {});
};
(acc: any, key) => {
const val = this.props.options[key];
key = key.startsWith('--') ? key : `--mdc-theme-${toDashCase(key)}`;
acc[key] = val;
return acc;
},
{}