📅  最后修改于: 2022-03-11 15:04:27.989000             🧑  作者: Mango
代码示例4
var elementPos = array.map(function(x) {return x.id; }).indexOf(idYourAreLookingFor);
var objectFound = array[elementPos];