diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-03-27 21:01:33 +0100 |
commit | cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 (patch) | |
tree | 92c5d88706a6ffc654d1b133618d357890e7096b /node_modules/webpack-merge/lib/join-arrays.js | |
parent | 3771b4d6b67b34c130f3a9a1a15f42deefdb2eda (diff) |
remove node_modules
Diffstat (limited to 'node_modules/webpack-merge/lib/join-arrays.js')
-rw-r--r-- | node_modules/webpack-merge/lib/join-arrays.js | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/node_modules/webpack-merge/lib/join-arrays.js b/node_modules/webpack-merge/lib/join-arrays.js deleted file mode 100644 index 3f2b378b7..000000000 --- a/node_modules/webpack-merge/lib/join-arrays.js +++ /dev/null @@ -1,67 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, "__esModule", { - value: true -}); - -var _mergeWith2 = require('lodash/mergeWith'); - -var _mergeWith3 = _interopRequireDefault(_mergeWith2); - -var _isPlainObject2 = require('lodash/isPlainObject'); - -var _isPlainObject3 = _interopRequireDefault(_isPlainObject2); - -var _isFunction2 = require('lodash/isFunction'); - -var _isFunction3 = _interopRequireDefault(_isFunction2); - -var _cloneDeep2 = require('lodash/cloneDeep'); - -var _cloneDeep3 = _interopRequireDefault(_cloneDeep2); - -exports.default = joinArrays; - -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } - -function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } - -var isArray = Array.isArray; - -function joinArrays() { - var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {}, - customizeArray = _ref.customizeArray, - customizeObject = _ref.customizeObject, - key = _ref.key; - - return function _joinArrays(a, b, k) { - var newKey = key ? key + '.' + k : k; - - if ((0, _isFunction3.default)(a) && (0, _isFunction3.default)(b)) { - return function () { - return _joinArrays(a.apply(undefined, arguments), b.apply(undefined, arguments), k); - }; - } - if (isArray(a) && isArray(b)) { - var customResult = customizeArray && customizeArray(a, b, newKey); - - return customResult || [].concat(_toConsumableArray(a), _toConsumableArray(b)); - } - - if ((0, _isPlainObject3.default)(a) && (0, _isPlainObject3.default)(b)) { - var _customResult = customizeObject && customizeObject(a, b, newKey); - - return _customResult || (0, _mergeWith3.default)({}, a, b, joinArrays({ - customizeArray: customizeArray, - customizeObject: customizeObject, - key: newKey - })); - } - - if ((0, _isPlainObject3.default)(b)) { - return (0, _cloneDeep3.default)(b); - } - - return b; - }; -}
\ No newline at end of file |