Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

return tru if one of the objects in a aray has a fild match

if (vendors.some(e => e.Name === 'Magenic')) {
  /* vendors contains the element we're looking for */
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #return #tru #objects #aray #fild #match
ADD COMMENT
Topic
Name
5+3 =