mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v3.7.0.
This commit is contained in:
@@ -7,7 +7,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
/**
|
||||
* Used by `_.template` to customize its `_.assign` use.
|
||||
*
|
||||
* **Note:** This method is like `assignDefaults` except that it ignores
|
||||
* **Note:** This function is like `assignDefaults` except that it ignores
|
||||
* inherited property values when checking if a property is `undefined`.
|
||||
*
|
||||
* @private
|
||||
@@ -18,7 +18,7 @@ var hasOwnProperty = objectProto.hasOwnProperty;
|
||||
* @returns {*} Returns the value to assign to the destination object.
|
||||
*/
|
||||
function assignOwnDefaults(objectValue, sourceValue, key, object) {
|
||||
return (typeof objectValue == 'undefined' || !hasOwnProperty.call(object, key))
|
||||
return (objectValue === undefined || !hasOwnProperty.call(object, key))
|
||||
? sourceValue
|
||||
: objectValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user