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