mirror of
https://gitea.com/actions/stale.git
synced 2026-07-20 12:32:20 +00:00
Initial import
This commit is contained in:
+9
@@ -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;
|
||||
}, {});
|
||||
}
|
||||
Reference in New Issue
Block a user