From caf63e1e4bce6a57cba0b70072483f117228c643 Mon Sep 17 00:00:00 2001 From: cnlevy Date: Wed, 19 Feb 2014 22:13:24 +0200 Subject: [PATCH 1/2] Add note that isObject returns true for arrays --- src/Angular.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Angular.js b/src/Angular.js index 21595cd60c24..d6e38612a5f2 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -445,7 +445,8 @@ function isDefined(value){return typeof value !== 'undefined';} * * @description * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not - * considered to be objects. + * considered to be objects. Note that JavaScript arrays and functions are objects, + * while (normal) strings and numbers are not. * * @param {*} value Reference to check. * @returns {boolean} True if `value` is an `Object` but not `null`. From f9229c4da40c0221a609ad139b738073b155662e Mon Sep 17 00:00:00 2001 From: cnlevy Date: Wed, 19 Feb 2014 22:56:32 +0200 Subject: [PATCH 2/2] Add note that isObject returns true for arrays --- src/Angular.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Angular.js b/src/Angular.js index d6e38612a5f2..b2905ed9b3cb 100644 --- a/src/Angular.js +++ b/src/Angular.js @@ -445,8 +445,7 @@ function isDefined(value){return typeof value !== 'undefined';} * * @description * Determines if a reference is an `Object`. Unlike `typeof` in JavaScript, `null`s are not - * considered to be objects. Note that JavaScript arrays and functions are objects, - * while (normal) strings and numbers are not. + * considered to be objects. Note that JavaScript arrays are objects. * * @param {*} value Reference to check. * @returns {boolean} True if `value` is an `Object` but not `null`.