Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to check if an element is in an array javascript

const fruits = ["Banana", "Orange", "Apple", "Mango"];
fruits.includes("Mango");
 
PREVIOUS NEXT
Tagged: #check #element #array #javascript
ADD COMMENT
Topic
Name
3+5 =