Files
codeql-action/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
2023-07-13 09:09:17 +00: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
};