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 pass a function.

Return: boolean

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.