From 554ac7a27631e73373e15527f378f1c1648f3af2 Mon Sep 17 00:00:00 2001 From: Jeremiah Hoyet Date: Wed, 17 Sep 2014 23:50:15 -0400 Subject: [PATCH] doc(angular.forEach): Clarify behavior when providing undefined or null value to angular.forEach --- src/Angular.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Angular.js b/src/Angular.js index 1b1d1b5eb0b7..947d2b7cb404 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -216,6 +216,8 @@ function isArrayLike(obj) { * * It is worth noting that `.forEach` does not iterate over inherited properties because it filters * using the `hasOwnProperty` method. + * + * Providing 'undefined' or 'null' values for `obj` will not invoke the `iterator` function and will return the value provided. * ```js var values = {name: 'misko', gender: 'male'};