add modules

This commit is contained in:
Shawn Napora
2019-08-08 10:10:17 -04:00
parent 90d84dbeeb
commit 660b172085
655 changed files with 115589 additions and 21 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;
}, {});
}