first commit
This commit is contained in:
12
node_modules/@nodeutils/defaults-deep/lib/index.js
generated
vendored
Normal file
12
node_modules/@nodeutils/defaults-deep/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
"use strict";
|
||||
|
||||
var _ = require("lodash");
|
||||
module.exports = function () {
|
||||
var output = {};
|
||||
_.toArray(arguments).reverse().forEach(function (item) {
|
||||
_.mergeWith(output, item, function (objectValue, sourceValue) {
|
||||
return _.isArray(sourceValue) ? sourceValue : undefined;
|
||||
});
|
||||
});
|
||||
return output;
|
||||
};
|
||||
Reference in New Issue
Block a user