Skip to content

self-assert / Requirements / isIn

Function: isIn()

isIn<ValueType>(...allowedSet): Predicate<ValueType>

Returns a predicate that checks if the value is in the allowed set.

Type Parameters

Type Parameter
ValueType

Parameters

ParameterType
...allowedSetValueType[]

Returns

Predicate<ValueType>