📅  最后修改于: 2022-03-11 15:02:25.707000             🧑  作者: Mango
// Find an object with a given property in an array
const desiredObject = myArray.find(element => element.prop === desiredValue);