Files
uTools-ProcessKiller/node_modules/lodash/internal/assignDefaults.js
fofolee 9446af6b84 v0.0.2
2019-03-27 15:56:00 +08:00

14 lines
428 B
JavaScript

/**
* Used by `_.defaults` to customize its `_.assign` 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 assignDefaults(objectValue, sourceValue) {
return objectValue === undefined ? sourceValue : objectValue;
}
module.exports = assignDefaults;