mirror of
https://github.com/ASzc/change-string-case-action.git
synced 2024-12-27 19:40:39 +08:00
10 lines
212 B
JavaScript
10 lines
212 B
JavaScript
function omit(object, keysToOmit) {
|
|
return Object.keys(object).filter((option) => !keysToOmit.includes(option)).reduce((obj, key) => {
|
|
obj[key] = object[key];
|
|
return obj;
|
|
}, {});
|
|
}
|
|
export {
|
|
omit
|
|
};
|