How does iterate through an object properties ?
Iterator method convert to a standard JS object into an iterable object.
To requires additional property as
Object's prototype contains additional properties for the object which are technically part of the object. These additional properties are inherited from the base object class, they are properties of object.
We can use Object.keys(obj) to get an Array of properties defined on the object itself.
It is more readable than a for-in loop. It is supports for firefox, chrome and internet explorer.
We can use Object.entries:
We want to iterate over the values, then use Object.values: