Determines if two objects or value are equivalent.
To be equivalent, they must pass ==
comparison or be of the same type and have all their
properties pass ==
comparison.
Supports values types, arrays and objects.
For objects function
properties and properties that start with $
are not considered during
comparisons.
Note: this function is used to augment the Object type in angular expressions. See
angular.Object
for more info.
angular.Object.equals(o1, o2);
o1 – {*} –
Object or value to compare.o2 – {*} –
Object or value to compare.boolean
– True if arguments are equal.