Closed
Bug 1431238
Opened 6 years ago
Closed 6 years ago
Description of Map states that it "...will only map to the object's insertion order—which is random and not ordered". This is incorrect since ES6
Categories
(Developer Documentation Graveyard :: JavaScript, defect, P1)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: nemo.burian, Assigned: fs)
References
()
Details
:: Developer Documentation Request Request Type: Correction Gecko Version: unspecified Technical Contact: :: Details It seems to me that this description should consider that an object's properties may be ordered since ES6 but for backwards compatibility this cannot be relied upon. "It should be noted that a Map which is a map of an object, especially a dictionary of dictionaries, will only map to the object's insertion order. In ES6 this is ordered for objects but for older versions of ES, this may be random and not ordered."
Assignee | ||
Updated•6 years ago
|
Priority: P5 → P1
Assignee | ||
Updated•6 years ago
|
Assignee: nobody → fscholz
Assignee | ||
Comment 1•6 years ago
|
||
Sorry it took so long to get to this. I've updated the page as per your suggestion: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map As MDN is a wiki, also consider to make such edits yourself in the future :)
Reporter | ||
Comment 2•6 years ago
|
||
Florian, thank you for the update. I didn't even realize I could propose an edit to the page without opening a bug ticket. I'll be sure to take that route in the future!
Assignee | ||
Updated•6 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•