javascript array exists check

JavaScript
var fruits = ["Banana", "Orange", "Apple", "Mango"];

var n = fruits.includes("Mango");
 
Source

Also in JavaScript: