shake
Variable移除对象中满足过滤条件的属性,默认移除值为 `undefined` 的属性
Signature
const shake: <RemovedKeys extends string, T>(obj: T, filter?: (value: any) => boolean) => Omit<T, RemovedKeys>Examples
shake({ a: 1, b: undefined, c: null }) // { a: 1, c: null }
shake({ a: 1, b: null }, (value) => value === null) // { a: 1 }Source
node_modules/.pnpm/radash@12.1.1/node_modules/radash/dist/index.d.ts:456