mirror of
https://github.com/actions/hello-world-javascript-action.git
synced 2025-04-05 05:59:40 +00:00
9 lines
179 B
JavaScript
9 lines
179 B
JavaScript
export function removeUndefinedProperties(obj) {
|
|
for (const key in obj) {
|
|
if (obj[key] === undefined) {
|
|
delete obj[key];
|
|
}
|
|
}
|
|
return obj;
|
|
}
|