Improve this Doc  View Source

angular.equals

  1. - function in module ng

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

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

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

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

Usage

angular.equals(o1, o2);

Arguments

Param Type Details
o1 *

Object or value to compare.

o2 *

Object or value to compare.

Returns

boolean

True if arguments are equal.