You can use includes() method, which checks for the presence of an element and returns a boolean value.
Here's how you can use it:
const fruit: string[] = ['apple', 'banana', 'mango'];
const hasMango: boolean = fruit.includes('mango');
console.log(hasMango); // Output: true
const hasOrange: boolean = fruit.includes('orange');
console.log(hasOrange); // Output: false
In this example, fruit.includes('mango') returns true because 'mango' is an element in the fruits array, while fruits.includes('orange') returns false because 'orange' is not present.