I have a javascript object
0:
{
firstName: "John",
lastName: "Doe",
score: 50,
}
1:
{
firstName: "Jane",
lastName: "Doe",
score: 22,
};
.
.
.
more...
I want to sum their scores using reduce. I know it can be done with for loop to turn that into scoreArray and reduce. Is there any efficient way to use reduce on object data so I don't need to do use for loop or create unnecessary array?