When designing an application, we often create an object model that mimics business domain concepts. The idea is to clearly articulate data in a form that feels most natural to the programmer.
Let's say we need to retrieve customers' data from a relational database. A customer record may be stored in a CUSTOMER table, and each customer is stored as a row in the table. When we fetch customer data from the database, we can construct a Customer object and push that into an array. Similarly, when we work with NoSQL databases, we may receive data as JSON documents and put them into an array of objects. In both cases, we can see that data is represented as an array of objects. Applications are usually designed ...