Find if an Array Contains a Specific String in JavaScript
Sample Code:
var listFruits = ["Apple", "Orange", "Banana"]; var arraycontainsturtles = (listFruits.indexOf("Orange") > -1);
Sample Code:
var listFruits = ["Apple", "Orange", "Banana"]; var arraycontainsturtles = (listFruits.indexOf("Orange") > -1);