Answer the question
In order to leave comments, you need to log in
Are there ready-made libraries for finding object differences?
There is an object "A" consisting of properties, and each property can also be an object consisting of properties. And it can also be an array of properties, etc. And somewhere in the depths of this object "A" can change one property, and the state "B" will turn out. Is there such a library that will receive the object "A" and "B" as input, and return all the differences between them? Even deep in the array.
Answer the question
In order to leave comments, you need to log in
Whether they are the same or not, you can check this.
function isEqual(A, B) {
return JSON.stringify(A) === JSON.stringify(B);
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question