jsondiffpatch icon indicating copy to clipboard operation
jsondiffpatch copied to clipboard

Clarification on objectHash

Open skelter opened this issue 4 years ago • 1 comments

As I understand it, objectHash is to calculate something not for full equality, but for something identity-ish, such that the children can participate in a meaningful diff?

skelter avatar Mar 17 '21 20:03 skelter

I used this option to calculate full equality by ordering object keys lexicographical and calculating a hash over the stringified Object.

I'm not the author, but I guess the use case of checking "identity-ish" is more common?

DaTebe avatar Apr 10 '21 10:04 DaTebe