content icon indicating copy to clipboard operation
content copied to clipboard

Incorrect information on one of the points

Open sance-eglobe opened this issue 9 months ago • 8 comments

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?

(https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Keyed_collections#object_and_map_compared)

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: https://github.com/mdn/content/commit/30c9f71e6a6cac4d894688cabf7e4b50af87cfe5
  • Document last modified: 2025-07-19T12:19:17.000Z

sance-eglobe avatar Feb 27 '26 06:02 sance-eglobe

Hi, @Josh-Cena I'd love to work on this.

dataCenter430 avatar Mar 04 '26 12:03 dataCenter430

Sure

Josh-Cena avatar Mar 04 '26 18:03 Josh-Cena

thank you, @Josh-Cena are you able to review my first PR here: https://github.com/mdn/content/pull/43326? I’m a new contributor, I only discovered this repo a few days ago and I’m excited to start contributing to the content.

I’d really appreciate any feedback you have! Thanks so much 😊

dataCenter430 avatar Mar 04 '26 18:03 dataCenter430

Please wait for Hamish. He only works on MDN on certain days. In general, give maintainers at least a week before nudging.

Josh-Cena avatar Mar 04 '26 19:03 Josh-Cena

oh, okay. I got it.

dataCenter430 avatar Mar 04 '26 19:03 dataCenter430

@Josh-Cena @hamishwillee This issue is solved in #43326.

BHUVANSH855 avatar Aug 06 '26 21:08 BHUVANSH855

@BHUVANSH855 No it isn't. That issue fixes https://github.com/mdn/content/issues/43297 (the comment above https://github.com/mdn/content/issues/43272#issuecomment-3999544036 should never have been posted here - it is unrelated.).

This is still open.

hamishwillee avatar Aug 06 '26 23:08 hamishwillee

@BHUVANSH855 No it isn't. That issue fixes https://github.com/mdn/content/issues/43297 (the comment above https://github.com/mdn/content/issues/43272#issuecomment-3999544036 should never have been posted here - it is unrelated.).

This is still open.

Ok then I would like to propose PR for this, can i ?

BHUVANSH855 avatar Aug 07 '26 03:08 BHUVANSH855