I have 2 different data storages which have same data stored in them. I want to check if both of them are similar. The type of data is
const object1 = {
"name": "John",
"age": "30",
"height": "180 cm",
"standard": "10th"
}
it should consider the data same even if the order of the data in the object is changed.
I have tried to generate the hash of the data and in batches and then check for their equality. But still as the input data is large it is still not a feasible way.
I want a efficient solution for the problem.
2
Answers
You can do it that way
I think you can try this :