- omit<T>(obj, ...paths): T
Type Parameters
- T extends Dictionary<unknown>
Parameters
- obj: Nullable<T>
Rest
...paths: Many<PropertyKey>[]
Returns T
- omit<T, K>(obj, ...paths): Omit<T, K>
Type Parameters
- T extends object
- K extends string | number | symbol
Parameters
- obj: Nullable<T>
Rest
...paths: Many<K>[]
Returns Omit<T, K>
- omit<T>(obj, ...paths): Partial<T>
Parameters
- obj: Nullable<T>
Rest
...paths: Many<PropertyKey>[]
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.