clean
Clean all undefined values.
@example
import { clean } from '@xsai/shared'
// { a: 'a' }
const obj = clean({
a: 'a',
b: undefined
})
const clean: <T extends Record<string, undefined | unknown>>(obj: T) => Record<keyof T, Exclude<T[keyof T], unknown>>;