Edit in JSFiddle

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

for(var i= 0, l = arr.length; i< l; i++){
	if(arr[i] === 'orange'){
		found = true;
	}
}

console.log("found:",found);