var arr = ['hello my name is harendra','hello my name is gyanendra']
result = arr.filter(element => element.includes("harendra"));
console.log(result)
var myarr = ["I", "like", "turtles"];
var arraycontainsturtles = (myarr.indexOf("turtles") > -1);
function searchStringInArray (str, strArray) {
for (var j=0; j<strArray.length; j++) {
if (strArray[j].match(str)) return j;
}
return -1;
}