Appearance
const compactObject: CompactObject
const
CompactObject
移除对象值为 null 和 undefined 的属性
null
undefined
目标对象
compactObject({ a: 0, b: undefined, c: null, d: '', f: false, e: NaN }) // => { a: 0, d: '', f: false, e: NaN }