🌈 搜索
📅  最后修改于: 2022-03-11 15:01:43.737000             🧑  作者: Mango
var result = myArray.find(t=>t.name ==='John').age; console.log(result);