Documentation
Functions
omit

Function: omit()

omit<T, K>(obj, ...keys): Omit<T, K>

From obj, create a new object that does not include keys.

Type parameters

Parameter
T extends Record<any, unknown>
K extends string | number | symbol

Parameters

ParameterType
objT
...keysK[]

Returns

Omit<T, K>

Example

omit({ a: 1, b: 2, c: 3 }, 'a', 'c') // { b: 2 }

Source

src/utils/helpers.ts:17 (opens in a new tab)