omitKeys
omitKeys<
T,K>(keysToOmit,obj):Omit<T,K>
Defined in: utils/object.ts:23
Omits the specified keys from an object and returns a new object without those keys.
Type Parameters
Section titled “Type Parameters”T extends object
The type of the original object.
K extends string | number | symbol
The keys to omit from the original object.
Parameters
Section titled “Parameters”keysToOmit
Section titled “keysToOmit”K[]
The keys to omit from the original object.
Partial<T>
The original object.
Returns
Section titled “Returns”Omit<T, K>
A new object without the omitted keys.