Skip to content

added array and object support #11

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

Closed

Conversation

andre0799
Copy link

@andre0799 andre0799 commented Oct 13, 2017

I just added support to date, array and object by default. It should even work for nested objects, since the function calls itself on this case. I added a couple tests too.

I'm using this on my production code, let me know if you think it makes sense or wants to do any change before merging it.

@tjconcept
Copy link
Member

Hi @andre0799

I can see the use case for this type of (more complex) equality checking, but I don't think it belongs in this package. That's really the intended use for the custom property.

I think your implementation is actually quite close to something a deep equal package would do, so it's possible you can just pass such function directly into this library.

@tjconcept tjconcept closed this Oct 13, 2017
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.

2 participants