contains

Returns true if the given array contains the given element, otherwise false.

bool
contains
(
T
)
(
T[] arr
,)

Parameters

arr T[]

the array to search in for the element

element T

the element to search for

Return Value

Type: bool

true if the array contains the element, otherwise false

Meta