-
Notifications
You must be signed in to change notification settings - Fork 23.1k
Open
Labels
Content:JSJavaScript docsJavaScript docs
Description
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Keyed_collections
What specific section or headline is this issue about?
Object and Map compared
What information was incorrect, unhelpful, or incomplete?
Under the three tips which can help to decide whether to use a Map or object, you said that use map over objects when all keys are same type and values are same type. but a map supports keys and values of different types.
Reference
"Use maps over objects when keys are unknown until run time, and when all keys are the same type and all values are the same type."
What did you expect to see?
I expect to see correct and more clear info
Do you have any supporting links, references, or citations?
Do you have anything more you want to share?
No response
MDN metadata
Page report details
- Folder:
en-us/web/javascript/guide/keyed_collections - MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Keyed_collections
- GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/web/javascript/guide/keyed_collections/index.md
- Last commit: 30c9f71
- Document last modified: 2025-07-19T12:19:17.000Z
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Content:JSJavaScript docsJavaScript docs