isOneOf

bool
isOneOf
(
T
)
(
T val
,)

Parameters

val T

Value to check

vals T[]

Array or sequence of values to check against

Return Value

Type: bool

If val is one of vals

Meta