When creating an array from an object,
the object needs to meet a few conditions.
Let's take a look at these.
First of all, this object should have a
length property. The length
property tells JavaScript
how long would the array be.
In the following object, we don't
have a length property:
In the next example, our object has
a length property: