|
|
|
@ -9599,7 +9599,7 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
|
|
|
|
})( window );/** |
|
|
|
|
* @license |
|
|
|
|
* 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"` |
|
|
|
|
* 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"` |
|
|
|
|
* Copyright JS Foundation and other contributors <https://js.foundation/>
|
|
|
|
|
* Released under MIT license <https://lodash.com/license>
|
|
|
|
|
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
|
|
@ -11717,6 +11717,62 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
|
|
|
|
return setTimeout(function() { func.apply(undefined, args); }, wait); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The base implementation of methods like `_.difference` without support |
|
|
|
|
* for excluding multiple arrays or iteratee shorthands. |
|
|
|
|
* |
|
|
|
|
* @private |
|
|
|
|
* @param {Array} array The array to inspect. |
|
|
|
|
* @param {Array} values The values to exclude. |
|
|
|
|
* @param {Function} [iteratee] The iteratee invoked per element. |
|
|
|
|
* @param {Function} [comparator] The comparator invoked per element. |
|
|
|
|
* @returns {Array} Returns the new array of filtered values. |
|
|
|
|
*/ |
|
|
|
|
function baseDifference(array, values, iteratee, comparator) { |
|
|
|
|
var index = -1, |
|
|
|
|
includes = arrayIncludes, |
|
|
|
|
isCommon = true, |
|
|
|
|
length = array.length, |
|
|
|
|
result = [], |
|
|
|
|
valuesLength = values.length; |
|
|
|
|
|
|
|
|
|
if (!length) { |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
if (iteratee) { |
|
|
|
|
values = arrayMap(values, baseUnary(iteratee)); |
|
|
|
|
} |
|
|
|
|
if (comparator) { |
|
|
|
|
includes = arrayIncludesWith; |
|
|
|
|
isCommon = false; |
|
|
|
|
} |
|
|
|
|
else if (values.length >= LARGE_ARRAY_SIZE) { |
|
|
|
|
includes = cacheHas; |
|
|
|
|
isCommon = false; |
|
|
|
|
values = new SetCache(values); |
|
|
|
|
} |
|
|
|
|
outer: |
|
|
|
|
while (++index < length) { |
|
|
|
|
var value = array[index], |
|
|
|
|
computed = iteratee == null ? value : iteratee(value); |
|
|
|
|
|
|
|
|
|
value = (comparator || value !== 0) ? value : 0; |
|
|
|
|
if (isCommon && computed === computed) { |
|
|
|
|
var valuesIndex = valuesLength; |
|
|
|
|
while (valuesIndex--) { |
|
|
|
|
if (values[valuesIndex] === computed) { |
|
|
|
|
continue outer; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
result.push(value); |
|
|
|
|
} |
|
|
|
|
else if (!includes(values, computed, comparator)) { |
|
|
|
|
result.push(value); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return result; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* The base implementation of `_.forEach` without support for iteratee shorthands. |
|
|
|
|
* |
|
|
|
@ -15384,6 +15440,32 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates an array excluding all given values using |
|
|
|
|
* [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
|
|
|
|
|
* for equality comparisons. |
|
|
|
|
* |
|
|
|
|
* **Note:** Unlike `_.pull`, this method returns a new array. |
|
|
|
|
* |
|
|
|
|
* @static |
|
|
|
|
* @memberOf _ |
|
|
|
|
* @since 0.1.0 |
|
|
|
|
* @category Array |
|
|
|
|
* @param {Array} array The array to inspect. |
|
|
|
|
* @param {...*} [values] The values to exclude. |
|
|
|
|
* @returns {Array} Returns the new array of filtered values. |
|
|
|
|
* @see _.difference, _.xor |
|
|
|
|
* @example |
|
|
|
|
* |
|
|
|
|
* _.without([2, 1, 2, 3], 1, 2); |
|
|
|
|
* // => [3]
|
|
|
|
|
*/ |
|
|
|
|
var without = baseRest(function(array, values) { |
|
|
|
|
return isArrayLikeObject(array) |
|
|
|
|
? baseDifference(array, values) |
|
|
|
|
: []; |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Creates an array of grouped elements, the first of which contains the |
|
|
|
|
* first elements of the given arrays, the second of which contains the |
|
|
|
@ -18924,6 +19006,7 @@ if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
|
|
|
|
|
lodash.uniqBy = uniqBy; |
|
|
|
|
lodash.unzip = unzip; |
|
|
|
|
lodash.values = values; |
|
|
|
|
lodash.without = without; |
|
|
|
|
lodash.zip = zip; |
|
|
|
|
lodash.zipObject = zipObject; |
|
|
|
|
|
|
|
|
|