change-string-case/node_modules/@octokit/endpoint/dist-src/util/remove-undefined-properties.js
Alex Szczuczko d0603cd0a7 npm install
2023-10-25 14:27:07 -06: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
};