actions/node_modules/@octokit/endpoint/dist-src/util/omit.js

13 lines
240 B
JavaScript
Raw Normal View History

2026-05-11 11:18:49 +02:00
function omit(object, keysToOmit) {
const result = { __proto__: null };
for (const key of Object.keys(object)) {
if (keysToOmit.indexOf(key) === -1) {
result[key] = object[key];
}
}
return result;
}
export {
omit
};