mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-05-20 13:14:44 +00:00
.
This commit is contained in:
parent
a004f0ae58
commit
fc725ba36b
7280 changed files with 19 additions and 1796407 deletions
39
node_modules/lodash/mergeWith.js
generated
vendored
39
node_modules/lodash/mergeWith.js
generated
vendored
|
@ -1,39 +0,0 @@
|
|||
var baseMerge = require('./_baseMerge'),
|
||||
createAssigner = require('./_createAssigner');
|
||||
|
||||
/**
|
||||
* 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:
|
||||
* (objValue, srcValue, key, object, source, stack).
|
||||
*
|
||||
* **Note:** This method mutates `object`.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 4.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The destination object.
|
||||
* @param {...Object} sources The source objects.
|
||||
* @param {Function} customizer The function to customize assigned values.
|
||||
* @returns {Object} Returns `object`.
|
||||
* @example
|
||||
*
|
||||
* function customizer(objValue, srcValue) {
|
||||
* if (_.isArray(objValue)) {
|
||||
* return objValue.concat(srcValue);
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* var object = { 'a': [1], 'b': [2] };
|
||||
* var other = { 'a': [3], 'b': [4] };
|
||||
*
|
||||
* _.mergeWith(object, other, customizer);
|
||||
* // => { 'a': [1, 3], 'b': [2, 4] }
|
||||
*/
|
||||
var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {
|
||||
baseMerge(object, source, srcIndex, customizer);
|
||||
});
|
||||
|
||||
module.exports = mergeWith;
|
Loading…
Add table
Add a link
Reference in a new issue