- omit<T, K>(object: null | T, props: K[]): T extends null ? { [key: string]: never } : Omit<T, K>
-
Type Parameters
-
T extends object
-
K extends string | number | symbol
Parameters
-
object: null | T
-
props: K[]
Returns T extends null ? { [key: string]: never } : Omit<T, K>
Returns new object with copied all properties without these specified.
Example
Example
Returns