get array key inside for in loop js 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);
}