mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Change objectValue and sourceValue params to objValue and srcValue.
This commit is contained in:
30
lodash.js
30
lodash.js
@@ -3622,12 +3622,12 @@
|
|||||||
* Used by `_.defaults` to customize its `_.assign` use.
|
* Used by `_.defaults` to customize its `_.assign` use.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} objectValue The destination object property value.
|
* @param {*} objValue The destination object property value.
|
||||||
* @param {*} sourceValue The source object property value.
|
* @param {*} srcValue The source object property value.
|
||||||
* @returns {*} Returns the value to assign to the destination object.
|
* @returns {*} Returns the value to assign to the destination object.
|
||||||
*/
|
*/
|
||||||
function extendDefaults(objectValue, sourceValue) {
|
function extendDefaults(objValue, srcValue) {
|
||||||
return objectValue === undefined ? sourceValue : objectValue;
|
return objValue === undefined ? srcValue : objValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -4078,17 +4078,17 @@
|
|||||||
* Used by `_.defaultsDeep` to customize its `_.merge` use.
|
* Used by `_.defaultsDeep` to customize its `_.merge` use.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {*} objectValue The destination object property value.
|
* @param {*} objValue The destination object property value.
|
||||||
* @param {*} sourceValue The source object property value.
|
* @param {*} srcValue The source object property value.
|
||||||
* @returns {*} Returns the value to assign to the destination object.
|
* @returns {*} Returns the value to assign to the destination object.
|
||||||
*/
|
*/
|
||||||
function mergeDefaults(objectValue, sourceValue, key, object, source, stackA, stackB) {
|
function mergeDefaults(objValue, srcValue, key, object, source, stackA, stackB) {
|
||||||
if (isObject(objectValue)) {
|
if (isObject(objValue)) {
|
||||||
stackA.push(objectValue);
|
stackA.push(objValue);
|
||||||
stackB.push(objectValue);
|
stackB.push(objValue);
|
||||||
baseMerge(objectValue, sourceValue, mergeDefaults, stackA, stackB);
|
baseMerge(objValue, srcValue, mergeDefaults, stackA, stackB);
|
||||||
}
|
}
|
||||||
return objectValue === undefined ? sourceValue : objectValue;
|
return objValue === undefined ? srcValue : objValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -7976,7 +7976,7 @@
|
|||||||
* This method is like `_.isEqual` except that it accepts `customizer` which is
|
* This method is like `_.isEqual` except that it accepts `customizer` which is
|
||||||
* invoked to compare values. If `customizer` returns `undefined` comparisons are
|
* invoked to compare values. If `customizer` returns `undefined` comparisons are
|
||||||
* handled by the method instead. The `customizer` is invoked with up to seven arguments:
|
* handled by the method instead. The `customizer` is invoked with up to seven arguments:
|
||||||
* (objectValue, otherValue [, index|key, object, other, stackA, stackB]).
|
* (objValue, othValue [, index|key, object, other, stackA, stackB]).
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
@@ -8517,7 +8517,7 @@
|
|||||||
* This method is like `_.assign` except that it accepts `customizer` which
|
* This method is like `_.assign` except that it accepts `customizer` which
|
||||||
* is invoked to produce the assigned values. If `customizer` returns `undefined`
|
* is invoked to produce the assigned values. If `customizer` returns `undefined`
|
||||||
* assignment is handled by the method instead. The `customizer` is invoked
|
* assignment is handled by the method instead. The `customizer` is invoked
|
||||||
* with five arguments: (objectValue, sourceValue, key, object, source).
|
* with five arguments: (objValue, srcValue, key, object, source).
|
||||||
*
|
*
|
||||||
* **Note:** This method mutates `object`.
|
* **Note:** This method mutates `object`.
|
||||||
*
|
*
|
||||||
@@ -9204,7 +9204,7 @@
|
|||||||
* is invoked to produce the merged values of the destination and source
|
* is invoked to produce the merged values of the destination and source
|
||||||
* properties. If `customizer` returns `undefined` merging is handled by the
|
* properties. If `customizer` returns `undefined` merging is handled by the
|
||||||
* method instead. The `customizer` is invoked with seven arguments:
|
* method instead. The `customizer` is invoked with seven arguments:
|
||||||
* (objectValue, sourceValue, key, object, source, stackA, stackB).
|
* (objValue, srcValue, key, object, source, stackA, stackB).
|
||||||
*
|
*
|
||||||
* @static
|
* @static
|
||||||
* @memberOf _
|
* @memberOf _
|
||||||
|
|||||||
Reference in New Issue
Block a user