Edit in JSFiddle

var arr = ['apple','orange','pear'];

console.log("found:", arr.indexOf("orange") != -1);