find property in array javascript code example
Example 1: js find element in array by property
var result = jsObjects.find(obj => {
return obj.b === 6
})
Example 2: find object in array javascript with property
let obj = objArray.find(obj => obj.id == 3);