Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

contains() js

const ParticipantsOfArtExhibition = [
	"Jhon",
  	"Amy",
  	"Liam"
]

ParticipantsOfArtExhibition.includes("Jhon") //true
ParticipantsOfArtExhibition.includes("Thompson") //false
ParticipantsOfArtExhibition.includes("Amy") //true
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
7+6 =