Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript object array contains

if (vendors.findIndex(item => item.Name == "Magenic") == -1) {
  //not found item
} else {
  //found item 
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #object #array
ADD COMMENT
Topic
Name
9+3 =