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