@glideapps/ts-necessities
Preparing search index...
isEnumValue
Function isEnumValue
isEnumValue
<
T
extends
object
>
(
e
:
T
,
x
:
unknown
)
:
x
is
T
[
keyof
T
]
If
x
belongs to the enum
e
, return
true
. Otherwise, return
false
.
Type Parameters
T
extends
object
Parameters
e
:
T
x
:
unknown
Returns
x
is
T
[
keyof
T
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
@glideapps/ts-necessities
Loading...
If
x
belongs to the enume
, returntrue
. Otherwise, returnfalse
.