lgoad-upload-action/node_modules/@octokit/endpoint/dist-src/util/lowercase-keys.js

13 lines
228 B
JavaScript
Raw Normal View History

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