From 4011f054d6d9a474f6cb1fa6b7968fd47ad77364 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 15 Jan 2015 20:03:53 -0800 Subject: [PATCH] Use `isLength` in `baseIsEqualDeep`. --- lodash.src.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lodash.src.js b/lodash.src.js index 297a832a5..4bd858c79 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -2302,7 +2302,7 @@ if (!objIsArr) { objTag = objToString.call(object); - if (typeof object.length == 'number') { + if (isLength(object.length)) { if (isArguments(object)) { object = arrayToObject(object); objTag = objectTag; @@ -2313,7 +2313,7 @@ } if (!othIsArr) { othTag = objToString.call(other); - if (typeof other.length == 'number') { + if (isLength(other.length)) { if (isArguments(other)) { other = arrayToObject(other); othTag = objectTag;