mirror of
https://github.com/zhigang1992/angular.js.git
synced 2026-04-02 17:26:31 +08:00
docs(angular.forEach): specifies that .forEach filters using .hasOwnProperty
Closes #5180 Closes #5776
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user