webshrine / stdlib/src / omit
Function: omit()
omit<
Input
,Key
>(object
,keys
):Omit
<Input
,Key
>
Returns new object without specified keys.
- Implements
Omit
utility type from Typescript.
Type Parameters
• Input extends AnyObject
• Key extends string
= Keys
<Input
>
Parameters
object
Input
keys
readonly MaybeLiteral
<Key
>[]
Returns
Omit
<Input
, Key
>