Files
2022-04-05 10:19:58 +10:00

9 lines
179 B
JavaScript

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