Files
codeql-action/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
Angela P Wen 2e7a05cddb Bump octokit/plugin-retry to v7.1.4
So that `octokit/request-error` can be bumped.
2025-02-25 14:55:06 -08:00

12 lines
189 B
JavaScript

function removeUndefinedProperties(obj) {
for (const key in obj) {
if (obj[key] === void 0) {
delete obj[key];
}
}
return obj;
}
export {
removeUndefinedProperties
};