return tru if one of the objects in a aray has a fild match code example
Example: 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 */
}
if (vendors.some(e => e.Name === 'Magenic')) {
/* vendors contains the element we're looking for */
}