-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
maintaining order of keys during iteration #106
Copy link
Copy link
Closed
Labels
release item: ✨ new featuresolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
release item: ✨ new featuresolution: proposed fixa fix for the issue has been proposed and waits for confirmationa fix for the issue has been proposed and waits for confirmation
keys in JSON are not sorted, but ordered based on definition. This becomes apparent when iterating keys of an object. For example, in JavaScript, with an object literal:
prints
For example, I believe most JS JITs keep separate shapes for object with the same properties but defined in different orders.