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

differenceOfObjects #27

Open
CMEONE opened this issue Oct 31, 2021 · 3 comments · May be fixed by #32
Open

differenceOfObjects #27

CMEONE opened this issue Oct 31, 2021 · 3 comments · May be fixed by #32
Assignees
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@CMEONE
Copy link
Member

CMEONE commented Oct 31, 2021

We should have a method that finds the difference of two objects (any keys that are present in the second object are removed from the first), like this:

helpful.differenceOfObjects({"a": 1, "b": 2}, {"b": 3, "c": 4}) => {"a": 1}

or:

helpful.differenceOfObjects({"a": 1, "b": 2}, {"a": 3, "b": 4}) => {}

or:

helpful.differenceOfObjects({"a": 1, "b": 2}, {"c": 3, "d": 4}) => {"a": 1, "b": 2}
@CMEONE CMEONE added enhancement New feature or request good first issue Good for newcomers labels Oct 31, 2021
@DerekJxy
Copy link

Hi! I think this testing method is interesting. Can I try it?

@CMEONE
Copy link
Member Author

CMEONE commented Nov 17, 2021

@DerekJxy Sure! We look forward to seeing your PR. Also, thanks so much for writing about us on DEV Community!

DerekJxy added a commit to DerekJxy/helpful.js that referenced this issue Nov 17, 2021
@DerekJxy DerekJxy linked a pull request Nov 17, 2021 that will close this issue
15 tasks
@CMEONE CMEONE linked a pull request Nov 17, 2021 that will close this issue
15 tasks
@Tcheumen
Copy link

hi, i would like to solve this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants