js exist in array code example
Example: javascript array contains
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var n = fruits.includes("Mango");
var fruits = ["Banana", "Orange", "Apple", "Mango"];
var n = fruits.includes("Mango");