export const cleanUndefinedOrNullKeys = <T>(obj: Object) => ( Object.fromEntries( Object.entries(obj).filter(([k, v]) => v != null || v != undefined) )) as T;