Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if property has value in array javascript

const magenicVendorExists =  vendors.reduce((accumulator, vendor) => (accumulator||vendor.Name === "Magenic"), false);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #property #array #javascript
ADD COMMENT
Topic
Name
3+1 =