Access value "firstName" in object array

console.log(participants); results in:

enter image description here

I am trying to access the firstName of each "participant":

const entries = Object.entries(participants);

entries.map((participant) => {
  console.log(participant.firstName);
});

Do you see what I am doing wrong here?



Read more here: https://stackoverflow.com/questions/64513687/access-value-firstname-in-object-array

Content Attribution

This content was originally published by Joey Coder at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: