Philipp Horstenkamp 6e037d6837
Some checks failed
Auto Maintenance Cycle / pre-commit Autoupdate (push) Failing after 33s
Added the node modules.
2023-11-19 03:45:16 +01:00

10 lines
227 B
JavaScript

export function lowercaseKeys(object) {
if (!object) {
return {};
}
return Object.keys(object).reduce((newObj, key) => {
newObj[key.toLowerCase()] = object[key];
return newObj;
}, {});
}