how to get element from array of object code example
Example 1: js find element in array by property
var result = jsObjects.find(obj => {
return obj.b === 6
})
Example 2: javascript get array object by id
myArray.find(x => x.id === '45').foo;
var result = jsObjects.find(obj => {
return obj.b === 6
})
myArray.find(x => x.id === '45').foo;