找到特定对象从列在js
let arr = [
{ name:"string 1", value:"this", other: "that" },
{ name:"string 2", value:"this", other: "that" }
];
let obj = arr.find(o => o.name === 'string 1');
console.log(obj);
找到一个单元件阵列的对象javascript
myArray.find(x => x.id === '45').foo;