mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(Angular.js): angular.equals calls itself recursively on objects
Closes #4622
This commit is contained in:
parent
af34a4a2c0
commit
9f0d4085e7
1 changed files with 2 additions and 1 deletions
|
|
@ -792,7 +792,8 @@ function shallowCopy(src, dst) {
|
|||
* Two objects or values are considered equivalent if at least one of the following is true:
|
||||
*
|
||||
* * Both objects or values pass `===` comparison.
|
||||
* * Both objects or values are of the same type and all of their properties pass `===` comparison.
|
||||
* * Both objects or values are of the same type and all of their properties are equal by
|
||||
* comparing them with `angular.equals`.
|
||||
* * Both values are NaN. (In JavaScript, NaN == NaN => false. But we consider two NaN as equal)
|
||||
* * Both values represent the same regular expression (In JavasScript,
|
||||
* /abc/ == /abc/ => false. But we consider two regular expressions as equal when their textual
|
||||
|
|
|
|||
Loading…
Reference in a new issue