특정 개체에서의 배열 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;