docs(angular.forEach): specifies that .forEach filters using .hasOwnProperty

Closes #5180
Closes #5776
This commit is contained in:
Mehul Patel 2014-01-13 15:19:12 -08:00 committed by Igor Minar
parent 465212835f
commit c61be8d0e6

View file

@ -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>