1 // useful in cases where presence of undefined is not desired (eg. in microORM operations)
2 export const removeUndefined = <T extends Record<string, any>>(obj: T): T => {
3 return JSON.parse(JSON.stringify(obj)) as T
4 }