#Why is there so little resources on arrays of objects?

1 messages · Page 1 of 1 (latest)

keen storm
#

Hey guys, I've been refreshing my fundamentals on arrays, objects, and arrays of objects. If i type "Objects" or "Arrays" into google, i find plenty of resources and articles. But if i type "Array of Objects" (which ive found myself using more than just arrays or objects alone), then I only get a few results.

For example, W3Schools or Mozilla docs seems to have dedicated pages for both arrays and objects, but i can't find one for arrays of objects. I find this weird, considering i've personally been using arrays of objects so much (e.g. when storing objects of individual questions in an array called questions. Why do you guys think this is the case?

raven wyvern
#

Because arrays of objects are just arrays

keen storm
# raven wyvern Because arrays of objects are just arrays

That's true, I guess i just thought that the extra layer of actually accessing the properties of the objects within the array along with how frequently arrays of objects are used would warrant its own section most of the time, but yeah it makes sense that at its core you just destructure the array then you destructure the individual objects.

raven wyvern
#

Accessing the properties of the objects is just normal object stuff

keen storm
# raven wyvern Accessing the properties of the objects is just normal object stuff

Yes, but for example in an array of objects

Const people = [
{ name: "John",
 age: 30 },
{ name: "Steve",
 age: 35 }]

The objects do not have any names, and coming from the section of objects a beginner might be confused as to why the objects have no names of their own.

Since most of the sections on objects would use e.g. const John = { age: 30 },

I know it is still part of objects, but this nuance is what makes it a bit confusing. As in, someone learning introductory arrays and introductory objects might not get that the object doesnt need a variable name

#

e.g. here, all the examples of object provide it with a name

keen storm