hasElement

bool
hasElement
(
T
)
(
T[] array
,)

Return Value

Type: bool

true if an aray has an element

Examples

assert([0, 1, 2].hasElement(2));
assert(![0, 1, 2].hasElement(4));

Meta