Closed Bug 1473252 Opened 6 years ago Closed 4 years ago

order of keys in an Object

Categories

(Developer Documentation Graveyard :: General, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: voxspox, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

The documentation of Object.entries explains that the order of items in the returned array is the same order as for a for-in-loop. In contrast, the demo example shows something different. It compares the definition of an object to the entries()-result!

I want to know if the order of items within an Object is somehow defined (and affects keys(), entries(), loops, etc.) or if the order is implementation specific, and thus not guaranteed, like hash arrays behave in other languages.


PS: The link "List of common topic experts" in this form leads to an outdated page
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.