TypeScript Array includes() Method
The TypeScript Array.includes() method checks if an array contains a specified element, returning true if found and false otherwise. It performs a strict equality comparison (===), works with all data types, and correctly identifies NaN in arrays.Syntaxarray.includes(searchElement[, fromIndex])Param