Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript search in array of strings

var arr = ['hello my name is harendra','hello my name is gyanendra']
result = arr.filter(element => element.includes("harendra"));
console.log(result)
 
PREVIOUS NEXT
Tagged: #javascript #search #array #strings
ADD COMMENT
Topic
Name
9+8 =