var arr = ['hello my name is harendra','hello my name is gyanendra'] result = arr.filter(element => element.includes("harendra")); console.log(result)