javascript list has item code example
Example: javascript list has item
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.includes("Mango");
//true
var fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.includes("Mango");
//true