- omit<T extends object, K extends PropertyName[]>(
object: undefined | null | T,
...paths?: K,
): Pick<T, Exclude<keyof T, K[number]>> Type Parameters
- T extends object
- K extends PropertyName[]
Parameters
- object: undefined | null | T
Optional
...paths: K
Returns Pick<T, Exclude<keyof T, K[number]>>
Returns the new object.
- omit<T extends object, K extends string | number | symbol>(
object: undefined | null | T,
...paths: Many<K>[],
): Omit<T, K> Type Parameters
- T extends object
- K extends string | number | symbol
Parameters
- object: undefined | null | T
- ...paths: Many<K>[]
Returns Omit<T, K>
- omit<T extends object>(
object: undefined | null | T,
...paths: Many<PropertyName>[],
): Partial<T> Parameters
- object: undefined | null | T
- ...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.