mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 19:07:49 +00:00
Use eq in assignInDefaults.
This commit is contained in:
@@ -2127,7 +2127,7 @@
|
|||||||
*/
|
*/
|
||||||
function assignInDefaults(objValue, srcValue, key, object) {
|
function assignInDefaults(objValue, srcValue, key, object) {
|
||||||
if (objValue === undefined ||
|
if (objValue === undefined ||
|
||||||
(objValue === objectProto[key] && !hasOwnProperty.call(object, key))) {
|
(eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {
|
||||||
return srcValue;
|
return srcValue;
|
||||||
}
|
}
|
||||||
return objValue;
|
return objValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user