DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
9+5 =
Submit