From 6798259b84aaba27c49d53ae93d957aae7772c62 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Tue, 29 Dec 2015 01:29:18 -0600 Subject: [PATCH] Use `eq` in `assignInDefaults`. --- lodash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 2acdda25e..e4ab60b2c 100644 --- a/lodash.js +++ b/lodash.js @@ -2127,7 +2127,7 @@ */ function assignInDefaults(objValue, srcValue, key, object) { if (objValue === undefined || - (objValue === objectProto[key] && !hasOwnProperty.call(object, key))) { + (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) { return srcValue; } return objValue;