Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document key comparison for maps #62

Merged
merged 3 commits into from
Dec 8, 2021

Conversation

planttheidea
Copy link
Owner

@planttheidea planttheidea commented Dec 6, 2021

Reason for change

With deepEqual comparison of Maps, both keys and values are deeply compared to determine equality. This is not called out in the documentation, and may not be obvious.

Change

Document deep equality nuance for Map in deepEqual documentation. Since the same is true for circularDeepEqual, there is a reference to the same disclaimer in that section as well.

Closes #60 .

Copy link
Collaborator

@g-traub g-traub left a comment

Choose a reason for hiding this comment

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

👍

@planttheidea planttheidea merged commit bd8956b into master Dec 8, 2021
@planttheidea planttheidea deleted the document-key-comparison-for-maps branch December 8, 2021 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deep equality including keys is not documented
2 participants