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