Skip to content

Incorrect information on one of the points #43272

@sance-eglobe

Description

@sance-eglobe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions