true
if needle
is found inside haystack
inArray('find_me', ['text1', 'text2', 'find_me', 'text3']);
returns true
function inArray(needle, haystack) {
var length = haystack.length;
for(var i = 0; i < length; i++) {
if(haystack[i] === needle) { return true };
}
return false;
}