Spaghetti Tom
Friday, July 21, 2017
See if an array of strings contains one string in particular in JavaScript!
var stuff = ["foo", "bar", "baz", "qux"];
if(stuff.indexOf("bar") > -1){
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment