Is it possible to look for arr elements in arrofobjs without a for loop? Since 'Buddy' is in both arr and arrofobjs, i'd expect found to return true
var arrofobjs = [ { type: 'Dog', name: 'Buddy', color: 'White' },
{ type: 'Cat', name: 'Misty', color: 'Black' },
{ type: 'Dog', name: 'Max', color: 'Black' }, ]
var arr = [ 'Buddy', 'Oscar' ]
var found = Object.values(arrofobjs).some(r=> arr.includes(r)) //returns false, but would return true if arrofobj was an object
arr.includes(r.name)<< you need to look for thenameattributewhile,forEachetc), because all answers here (some,includes,findetc...) do use loops internally. After all, if you stop to think, from the machine viewpoint this is impossible to do without looping.