mirror of
https://github.com/marocchino/sticky-pull-request-comment.git
synced 2025-12-16 05:06:31 +00:00
8 lines
179 B
JavaScript
8 lines
179 B
JavaScript
export function removeUndefinedProperties(obj) {
|
|
for (const key in obj) {
|
|
if (obj[key] === undefined) {
|
|
delete obj[key];
|
|
}
|
|
}
|
|
return obj;
|
|
}
|