This commit is contained in:
Danny McCormick 2019-08-06 18:29:44 -04:00
parent fc9ff49b90
commit 5273d0df9c
391 changed files with 79850 additions and 45 deletions

View file

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