change-string-case/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js

12 lines
189 B
JavaScript
Raw Normal View History

2023-10-26 04:27:07 +08:00
function removeUndefinedProperties(obj) {
for (const key in obj) {
if (obj[key] === void 0) {
delete obj[key];
}
}
return obj;
}
export {
removeUndefinedProperties
};