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. During property comparision properties of function
type and
properties with name starting with $
are ignored.
Supports values types, arrays and objects.
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.