I am currently testing the similarity between my deep clone of an array and the original object (using jQuery).
Here is the method I used to clone it:
self.slides = jQuery.extend(true, {}, parent.modules[self.moduleId].composed);
However, I have noticed that even though the content I'm interested in is the same, the two objects are slightly different. When I inspect them in the Chrome console, this is how they appear:
Original object:
[Object]
0: Object
length: 1
__proto__: Array[0]
Clone:
Object {0: Object}
0: Object
__proto__: Object
It seems that the clone is recognized as an object, while the original is seen as an array.
Is there a different cloning method I should use or how can I accurately test their similarity?