in authui-container/src/utils/index.ts [42:53]
export function removeUndefinedFields<T>(obj: T): T {
// If obj is not a non-null object, return it back.
if (!isNonNullObject(obj)) {
return obj;
}
for (const key in obj) {
if (typeof obj[key] === 'undefined') {
delete obj[key];
}
}
return obj;
}