to loop around array containing inside objects and access their properties code example
Example 1: js loop over array of objects extract value
var myArr = [{name: 'rich', secondName: 'james'}, {name: 'brian', secondName: 'chris'}];
var mySecondArr = myArr.map(x => x.name);
console.log(mySecondArr);
Example 2: iterate over array of object javascript and access the properties
for (let item of items) {
console.log(item); // Will display contents of the object inside the array
}