contains Method

Returns true if this array contains at least one value comparing equal to the specified value.

contains(value: T): boolean

@returns true if an equivalent element exists in the array.

Parameter Type Description
value T The value to search for

Returns - boolean

true if an equivalent element exists in the array.

Defined in

Last Updated: 14 November, 2024