Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if item is in list js

var myList=["a", "b", "c"];
mylist.includes("d")//returns true or false
 
PREVIOUS NEXT
Tagged: #check #item #list #js
ADD COMMENT
Topic
Name
5+1 =