Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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>>;