angular.equals (API in module ng )

Description

Determines if two objects or two values are equivalent. Supports value types, arrays and objects.

Two objects or values are considered equivalent if at least one of the following is true:

During a property comparision, properties of function type and properties with names that begin with $ are ignored.

Scope and DOMWindow objects are being compared only be identify (===).

Usage

angular.equals(o1, o2);

Parameters

Returns

{boolean}

True if arguments are equal.