mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
Remove references to _.
This commit is contained in:
@@ -2,7 +2,7 @@ import baseMerge from './_baseMerge.js';
|
||||
import createAssigner from './_createAssigner.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.merge` except that it accepts `customizer` which
|
||||
* This method is like `merge` except that it accepts `customizer` which
|
||||
* is invoked to produce the merged values of the destination and source
|
||||
* properties. If `customizer` returns `undefined`, merging is handled by the
|
||||
* method instead. The `customizer` is invoked with six arguments:
|
||||
@@ -11,7 +11,6 @@ import createAssigner from './_createAssigner.js';
|
||||
* **Note:** This method mutates `object`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The destination object.
|
||||
@@ -21,7 +20,7 @@ import createAssigner from './_createAssigner.js';
|
||||
* @example
|
||||
*
|
||||
* function customizer(objValue, srcValue) {
|
||||
* if (_.isArray(objValue)) {
|
||||
* if (isArray(objValue)) {
|
||||
* return objValue.concat(srcValue);
|
||||
* }
|
||||
* }
|
||||
@@ -29,7 +28,7 @@ import createAssigner from './_createAssigner.js';
|
||||
* var object = { 'a': [1], 'b': [2] };
|
||||
* var other = { 'a': [3], 'b': [4] };
|
||||
*
|
||||
* _.mergeWith(object, other, customizer);
|
||||
* mergeWith(object, other, customizer);
|
||||
* // => { 'a': [1, 3], 'b': [2, 4] }
|
||||
*/
|
||||
const mergeWith = createAssigner((object, source, srcIndex, customizer) => {
|
||||
|
||||
Reference in New Issue
Block a user