Skip to content

self-assert / Requirements / includes

Function: includes() ​

includes<ElementType>(element): Predicate<{ includes: Predicate<ElementType>; }>

Returns a predicate that holds when the list contains the given element

Type Parameters ​

Type Parameter
ElementType

Parameters ​

ParameterType
elementElementType

Returns ​

Predicate<{ includes: Predicate<ElementType>; }>