mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 00:57:48 +00:00
Bump to v3.10.0.
This commit is contained in:
15
internal/mergeDefaults.js
Normal file
15
internal/mergeDefaults.js
Normal file
@@ -0,0 +1,15 @@
|
||||
import merge from '../object/merge';
|
||||
|
||||
/**
|
||||
* Used by `_.defaultsDeep` to customize its `_.merge` use.
|
||||
*
|
||||
* @private
|
||||
* @param {*} objectValue The destination object property value.
|
||||
* @param {*} sourceValue The source object property value.
|
||||
* @returns {*} Returns the value to assign to the destination object.
|
||||
*/
|
||||
function mergeDefaults(objectValue, sourceValue) {
|
||||
return objectValue === undefined ? sourceValue : merge(objectValue, sourceValue, mergeDefaults);
|
||||
}
|
||||
|
||||
export default mergeDefaults;
|
||||
Reference in New Issue
Block a user