|
|
@ -264,7 +264,7 @@ if(_global.BI.prepares == null) { |
|
|
|
}/** |
|
|
|
}/** |
|
|
|
* @license |
|
|
|
* @license |
|
|
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
|
|
* Lodash (Custom Build) <https://lodash.com/>
|
|
|
|
* Build: `lodash core plus="debounce,throttle,get,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim"` |
|
|
|
* Build: `lodash core plus="debounce,throttle,get,findIndex,findLastIndex,findKey,findLastKey,isArrayLike,invert,invertBy,uniq,uniqBy,omit,omitBy,zip,unzip,rest,range,random,reject,intersection,drop,countBy,union,zipObject,initial,cloneDeep,clamp,isPlainObject,take,takeRight,without,difference,defaultsDeep,trim,merge"` |
|
|
|
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
|
|
|
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
|
|
|
* Released under MIT license <https://lodash.com/license>
|
|
|
|
* Released under MIT license <https://lodash.com/license>
|
|
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
|
@ -9157,6 +9157,41 @@ if(_global.BI.prepares == null) { |
|
|
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); |
|
|
|
return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* This method is like `_.assign` except that it recursively merges own and |
|
|
|
|
|
|
|
* inherited enumerable string keyed properties of source objects into the |
|
|
|
|
|
|
|
* destination object. Source properties that resolve to `undefined` are |
|
|
|
|
|
|
|
* skipped if a destination value exists. Array and plain object properties |
|
|
|
|
|
|
|
* are merged recursively. Other objects and value types are overridden by |
|
|
|
|
|
|
|
* assignment. Source objects are applied from left to right. Subsequent |
|
|
|
|
|
|
|
* sources overwrite property assignments of previous sources. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* **Note:** This method mutates `object`. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @static |
|
|
|
|
|
|
|
* @memberOf _ |
|
|
|
|
|
|
|
* @since 0.5.0 |
|
|
|
|
|
|
|
* @category Object |
|
|
|
|
|
|
|
* @param {Object} object The destination object. |
|
|
|
|
|
|
|
* @param {...Object} [sources] The source objects. |
|
|
|
|
|
|
|
* @returns {Object} Returns `object`. |
|
|
|
|
|
|
|
* @example |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* var object = { |
|
|
|
|
|
|
|
* 'a': [{ 'b': 2 }, { 'd': 4 }] |
|
|
|
|
|
|
|
* }; |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* var other = { |
|
|
|
|
|
|
|
* 'a': [{ 'c': 3 }, { 'e': 5 }] |
|
|
|
|
|
|
|
* }; |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* _.merge(object, other); |
|
|
|
|
|
|
|
* // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
var merge = createAssigner(function(object, source, srcIndex) { |
|
|
|
|
|
|
|
baseMerge(object, source, srcIndex); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 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 |
|
|
|
* is invoked to produce the merged values of the destination and source |
|
|
@ -10015,6 +10050,7 @@ if(_global.BI.prepares == null) { |
|
|
|
lodash.keys = keys; |
|
|
|
lodash.keys = keys; |
|
|
|
lodash.map = map; |
|
|
|
lodash.map = map; |
|
|
|
lodash.matches = matches; |
|
|
|
lodash.matches = matches; |
|
|
|
|
|
|
|
lodash.merge = merge; |
|
|
|
lodash.mixin = mixin; |
|
|
|
lodash.mixin = mixin; |
|
|
|
lodash.negate = negate; |
|
|
|
lodash.negate = negate; |
|
|
|
lodash.omit = omit; |
|
|
|
lodash.omit = omit; |
|
|
@ -10917,6 +10953,7 @@ if (!_global.BI) { |
|
|
|
// deep方法
|
|
|
|
// deep方法
|
|
|
|
_.extend(BI, { |
|
|
|
_.extend(BI, { |
|
|
|
deepClone: _.cloneDeep, |
|
|
|
deepClone: _.cloneDeep, |
|
|
|
|
|
|
|
deepExtend: _.merge, |
|
|
|
|
|
|
|
|
|
|
|
isDeepMatch: function (object, attrs) { |
|
|
|
isDeepMatch: function (object, attrs) { |
|
|
|
var keys = BI.keys(attrs), length = keys.length; |
|
|
|
var keys = BI.keys(attrs), length = keys.length; |
|
|
@ -11029,12 +11066,6 @@ if (!_global.BI) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return result; |
|
|
|
return result; |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
deepExtend: function () { |
|
|
|
|
|
|
|
var args = [].slice.call(arguments); |
|
|
|
|
|
|
|
args.unshift(true); |
|
|
|
|
|
|
|
return $.extend.apply($, args); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|