change-string-case/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js
Alex Szczuczko d0603cd0a7 npm install
2023-10-25 14:27:07 -06:00

13 lines
228 B
JavaScript

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