Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80742 views
1
/**
2
* Used by `_.defaults` to customize its `_.assign` use.
3
*
4
* @private
5
* @param {*} objectValue The destination object property value.
6
* @param {*} sourceValue The source object property value.
7
* @returns {*} Returns the value to assign to the destination object.
8
*/
9
function assignDefaults(objectValue, sourceValue) {
10
return objectValue === undefined ? sourceValue : objectValue;
11
}
12
13
module.exports = assignDefaults;
14
15