From 5f845aa6f84528138f10114ed0c346b5787855db Mon Sep 17 00:00:00 2001 From: jdalton Date: Fri, 22 May 2015 22:08:29 -0700 Subject: [PATCH] Optimize `baseIsEqual`. --- lodash.src.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.src.js b/lodash.src.js index e414b2b40..1204ecc0e 100644 --- a/lodash.src.js +++ b/lodash.src.js @@ -2285,7 +2285,7 @@ if (value === other) { return true; } - if (value == null || other == null || (!isObject(value) && !isObject(other))) { + if (value == null || other == null || (!isObject(value) && !isObjectLike(other))) { return value !== value && other !== other; } return baseIsEqualDeep(value, other, baseIsEqual, customizer, isLoose, stackA, stackB);