// Find an object with a given property in an array const desiredObject = myArray.find(element => element.prop === desiredValue);