Skip to content

Conversation

@ayush007-git
Copy link

Clarify the correct usage of Map methods and explain the implications of using map[key].

Clarify the correct usage of Map methods and explain the implications of using map[key].
@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Nov 10, 2025
@javascript-translate-bot javascript-translate-bot requested review from a team November 10, 2025 06:43
@CLAassistant
Copy link

CLAassistant commented Nov 10, 2025

CLA assistant check
All committers have signed the CLA.

@smith558 smith558 requested a review from Copilot November 12, 2025 20:25
Copilot finished reviewing on behalf of smith558 November 12, 2025 20:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the documentation about Map usage by clarifying what happens when using bracket notation (map[key]) instead of the proper Map methods. The update replaces a brief warning with a detailed explanation and concrete code example.

Key changes:

  • Expanded explanation of why map[key] should be avoided, clarifying that it adds properties to the Map object itself rather than storing data in the Map collection
  • Added a practical code example demonstrating the difference between bracket notation and proper Map methods

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@smith558 smith558 self-assigned this Nov 12, 2025
Accepted the changes from the review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review needed Review needed, please approve or request changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants