find object in array javascript with property

JavaScript
let obj = objArray.find(obj => obj.id == 3);

Source

Also in JavaScript: