mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Use eq in assignInDefaults.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user