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