mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(angular.forEach): specifies that .forEach filters using .hasOwnProperty
Closes #5180 Closes #5776
This commit is contained in:
parent
465212835f
commit
c61be8d0e6
1 changed files with 3 additions and 0 deletions
|
|
@ -192,6 +192,9 @@ function isArrayLike(obj) {
|
|||
* is the value of an object property or an array element and `key` is the object property key or
|
||||
* array element index. Specifying a `context` for the function is optional.
|
||||
*
|
||||
* It is worth nothing that `.forEach` does not iterate over inherited properties because it filters
|
||||
* using the `hasOwnProperty` method.
|
||||
*
|
||||
* Note: this function was previously known as `angular.foreach`.
|
||||
*
|
||||
<pre>
|
||||
|
|
|
|||
Loading…
Reference in a new issue