contains Method
Returns true if this array contains at least one value comparing equal to the specified value.
contains(value: T): boolean
Parameter | Type | Description |
---|---|---|
value | T | The value to search for |
Returns - true if an equivalent element exists in the array.
Defined in
Last Updated: 08 January, 2020