-
Notifications
You must be signed in to change notification settings - Fork 39
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
Feature request - allow '==' equality with an option #47
Comments
I was able to do it using the undocumented
Seems to work - for example:
The |
I guess the most generic way to add this would be to expose the comparison function in the options. In other words, documenting it seems enough for my use case. |
In some cases, it would make sense to use the weak equality
==
instead of the strong one===
.Take this example, where two URL parsers give different results :
vs
I have no idea how complicated it would be to achieve internally. From the API point of view, I would add another function or a flag in the current one's arguments to enable the weak comparison.
The text was updated successfully, but these errors were encountered: