From c61be8d0e6bb1bf7aed249bd2f653c0e0483683e Mon Sep 17 00:00:00 2001 From: Mehul Patel Date: Mon, 13 Jan 2014 15:19:12 -0800 Subject: docs(angular.forEach): specifies that .forEach filters using .hasOwnProperty Closes #5180 Closes #5776 --- src/Angular.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/Angular.js b/src/Angular.js index 11ce5cf5..f30e5a26 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -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`. *
-- cgit v1.2.3