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

Allow some degree of configuration #96

Open
FZ-Iskandar opened this issue May 8, 2023 · 1 comment
Open

Allow some degree of configuration #96

FZ-Iskandar opened this issue May 8, 2023 · 1 comment

Comments

@FZ-Iskandar
Copy link

It would be great if you could give a third parameter to the methods with a few configuration options, like for example:

  • comparing operator: Strict (===) or Loose(==). And set the default to strict to not break backwards compatibility
  • determining null/empty: For example a null value recovered from the DB could be considered "the same" as an empty string comming from a text input.

Just some ideas of configurations that could be set

@ioev
Copy link

ioev commented May 10, 2023

I ran into a case recently where I was diffing some objects that contained arrays, and I didn't care about the ordering of the arrays. Being able to specify this as a config option would be nice (currently defaults to returning a diff entry.)

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

No branches or pull requests

2 participants