I have an array of objects being returned after an API request. It takes the form:
[{
    id: 12,
    slug: '050e8e8db93ae08ed46cd57017ef9617',
    name: 'Test Badge'
}, {
    id: 13,
    slug: '78ed09b1f2aae29ab30915ac9f167bfa',
    name: 'Test Badge'
}]
I need to test for a value: x on the key: slug, but my array of objects is hundreds of objects long. Is there a way to test for a value without looping through all the objects manually?
 
     
     
    