diff options
Diffstat (limited to 'node_modules/lodash/_assignInDefaults.js')
-rw-r--r-- | node_modules/lodash/_assignInDefaults.js | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/node_modules/lodash/_assignInDefaults.js b/node_modules/lodash/_assignInDefaults.js deleted file mode 100644 index ea6b0e358..000000000 --- a/node_modules/lodash/_assignInDefaults.js +++ /dev/null @@ -1,27 +0,0 @@ -var eq = require('./eq'); - -/** Used for built-in method references. */ -var objectProto = Object.prototype; - -/** Used to check objects for own properties. */ -var hasOwnProperty = objectProto.hasOwnProperty; - -/** - * Used by `_.defaults` to customize its `_.assignIn` use. - * - * @private - * @param {*} objValue The destination value. - * @param {*} srcValue The source value. - * @param {string} key The key of the property to assign. - * @param {Object} object The parent object of `objValue`. - * @returns {*} Returns the value to assign. - */ -function assignInDefaults(objValue, srcValue, key, object) { - if (objValue === undefined || - (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) { - return srcValue; - } - return objValue; -} - -module.exports = assignInDefaults; |