- omit<T, K>(object, ...paths?): Pick<T, Exclude<keyof T, K[number]>>
Type Parameters
- T extends object
- K extends PropertyName[]
Parameters
- object: undefined | null | T
Optional
Rest
...paths: K
Returns Pick<T, Exclude<keyof T, K[number]>>
Returns the new object.
- omit<T, K>(object, ...paths): Omit<T, K>
Type Parameters
- T extends object
- K extends string | number | symbol
Parameters
- object: undefined | null | T
Rest
...paths: Many<K>[]
Returns Omit<T, K>
- omit<T>(object, ...paths): Partial<T>
Parameters
- object: undefined | null | T
Rest
...paths: Many<PropertyName>[]
Returns Partial<T>
The opposite of
_.pick
; this method creates an object composed of the own and inherited enumerable properties ofobject
that are not omitted.