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

Add comparison of new Set objects to the deepEqual function. #11766

Closed

Conversation

Yummy-sk
Copy link

@Yummy-sk Yummy-sk commented Apr 7, 2024

Description

Due to Object.keys returning an empty array for a new Set, the comparison erroneously yields true. Consequently leading to the isDirty value always returning false for values that are sets.

Therefore, I added logic to the deepEqual function to accommodate comparison of sets.

Codesandbox

Link

Copy link

codesandbox bot commented Apr 7, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@Yummy-sk Yummy-sk closed this Apr 7, 2024
@Yummy-sk Yummy-sk deleted the feat/set-in-deepEqual branch April 7, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant