I am looking for a proper way to extract all the array of objects thru simple loop.
let scores=
{
ballet:
{
monica: ["comments1","91"],
yael: ["comments2","79"],
},
swimming:
{
gabay: ["comments3","82"],
victor: ["comments3","95"],
},
guitar:
{
gangina: ["comments4","97"],
diko: ["comments5","42"],
}
};
…as a side note since the real database is huge so performace is also an issue here 🙂
I was tring :
let index = 0;
while(index < scores.length){
console.log(scores[index]);
index += 1;
}
with no results 🙁
…and I thought it must be simple 🙂