omit

Variable

从对象中排除指定的若干个 key,返回剩余属性组成的新对象

Signature

const omit: <T, TKeys extends keyof T>(obj: T, keys: TKeys[]) => Omit<T, TKeys>

Examples

omit({ a: 1, b: 2, c: 3 }, ['b']) // { a: 1, c: 3 }

Source

node_modules/.pnpm/radash@12.1.1/node_modules/radash/dist/index.d.ts:504