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

compare function does not return patches for objects that contain the key "" #260

Open
weikinhuang opened this issue Aug 20, 2020 · 1 comment

Comments

@weikinhuang
Copy link

The compare() function does not return any differences when the two objects contain a key {"": ""}.

This data type is used because our PHP backend adds that key to force casting it to a js object in responses, instead of arrays, which is how the PHP json serializer works.

For example:

const foo = { key: { "": "" } };
const bar= { key: { "": "", "bar": "abc" } };
compare(foo, bar);
@Starcounter-Jack
Copy link
Owner

I will look into this

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