Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

find string in array javascript

var myarr = ["I", "like", "turtles"];
var arraycontainsturtles = (myarr.indexOf("turtles") > -1);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #find #string #array #javascript
ADD COMMENT
Topic
Name
1+4 =