lgoad-upload-action/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js

12 lines
189 B
JavaScript
Raw Normal View History

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