I have two arrays. In each array I have objects with lots of properties but no methods. I need to see if array 1 is equal with array 2.
One way to do that would be to create a function that pass through each element of an array and compare each property of the object with the object in the similar position in the second array.
The problem is that the arrays are quite big and also each object has lots of properties. I was wandering if there could be another way. In C++ for example I could read memory... but I don't know how to do that in js.
I need to obtain the most optimal way since this is part of a function that is used often.
See Question&Answers more detail:os