how to look through an array and return an object code example
Example: javascript loop through array of objects
let arr = [object0, object1, object2];
for (let elm of arr) {
console.log(elm);
}
let arr = [object0, object1, object2];
for (let elm of arr) {
console.log(elm);
}