Skip to content

export Function

has ​

Checks whether the array has the matched value or passes the function.

Constructor ​

ts
has( array, value )
ParameterTypeDescription
array = []any[]The array that contains the value.
valueanyThe value to check or the validator.

Return: boolean