Appearance
过滤掉对象或数组中的null、undefined
type TargetObjType = { [propName: string]: any } <T extends TargetObjType>(resJson: T)
T
import { filterEmptyVal } from "poor-utils-pro"; filterEmptyVal( { a: null, b: { c: undefined, d: 1, }, }) // {b:{d:1}}