accessing an array in an object using .find code example
Example 1: javascript get array object by id
myArray.find(x => x.id === '45').foo;
Example 2: access index of array javascript
let first = fruits[0]
// Apple
let last = fruits[fruits.length - 1]
// Banana