js对象数组根据某一属性查找对象

console.log( list.find(item => item.id == 1))
查找id=1 的对象
原文地址:https://www.cnblogs.com/lsyy2017/p/14313380.html