iterate over array of object javascript and access the properties

Solutions on MaxInterview for iterate over array of object javascript and access the properties by the best coders in the world

showing results for - "iterate over array of object javascript and access the properties"
Nicola
16 Oct 2016
1yourArray.forEach(function (arrayItem) {
2    var x = arrayItem.prop1 + 2;
3    console.log(x);
4});
5
Giovanni
26 Oct 2018
1for (let item of items) {
2    console.log(item); // Will display contents of the object inside the array
3}
similar questions