Skip to content

Commit c61be8d

Browse files
MehulATLIgorMinar
authored andcommitted
docs(angular.forEach): specifies that .forEach filters using .hasOwnProperty
Closes angular#5180 Closes angular#5776
1 parent 4652128 commit c61be8d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Angular.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ function isArrayLike(obj) {
192192
* is the value of an object property or an array element and `key` is the object property key or
193193
* array element index. Specifying a `context` for the function is optional.
194194
*
195+
* It is worth nothing that `.forEach` does not iterate over inherited properties because it filters
196+
* using the `hasOwnProperty` method.
197+
*
195198
* Note: this function was previously known as `angular.foreach`.
196199
*
197200
<pre>

0 commit comments

Comments
 (0)