mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Compare commits
4 Commits
4.17.3-amd
...
4.17.10-am
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bbcefc5447 | ||
|
|
cf8bb34a76 | ||
|
|
6339af7cb1 | ||
|
|
955537d67f |
@@ -1,4 +1,4 @@
|
|||||||
# lodash-amd v4.17.3
|
# lodash-amd v4.17.10
|
||||||
|
|
||||||
The [Lodash](https://lodash.com/) library exported as [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules.
|
The [Lodash](https://lodash.com/) library exported as [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD) modules.
|
||||||
|
|
||||||
@@ -27,4 +27,4 @@ require({
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
See the [package source](https://github.com/lodash/lodash/tree/4.17.3-amd) for more details.
|
See the [package source](https://github.com/lodash/lodash/tree/4.17.10-amd) for more details.
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
define(['./_Stack', './_arrayEach', './_assignValue', './_baseAssign', './_baseAssignIn', './_cloneBuffer', './_copyArray', './_copySymbols', './_copySymbolsIn', './_getAllKeys', './_getAllKeysIn', './_getTag', './_initCloneArray', './_initCloneByTag', './_initCloneObject', './isArray', './isBuffer', './isObject', './keys'], function(Stack, arrayEach, assignValue, baseAssign, baseAssignIn, cloneBuffer, copyArray, copySymbols, copySymbolsIn, getAllKeys, getAllKeysIn, getTag, initCloneArray, initCloneByTag, initCloneObject, isArray, isBuffer, isObject, keys) {
|
define(['./_Stack', './_arrayEach', './_assignValue', './_baseAssign', './_baseAssignIn', './_cloneBuffer', './_copyArray', './_copySymbols', './_copySymbolsIn', './_getAllKeys', './_getAllKeysIn', './_getTag', './_initCloneArray', './_initCloneByTag', './_initCloneObject', './isArray', './isBuffer', './isMap', './isObject', './isSet', './keys'], function(Stack, arrayEach, assignValue, baseAssign, baseAssignIn, cloneBuffer, copyArray, copySymbols, copySymbolsIn, getAllKeys, getAllKeysIn, getTag, initCloneArray, initCloneByTag, initCloneObject, isArray, isBuffer, isMap, isObject, isSet, keys) {
|
||||||
|
|
||||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||||
var undefined;
|
var undefined;
|
||||||
@@ -108,7 +108,7 @@ define(['./_Stack', './_arrayEach', './_assignValue', './_baseAssign', './_baseA
|
|||||||
if (!cloneableTags[tag]) {
|
if (!cloneableTags[tag]) {
|
||||||
return object ? value : {};
|
return object ? value : {};
|
||||||
}
|
}
|
||||||
result = initCloneByTag(value, tag, baseClone, isDeep);
|
result = initCloneByTag(value, tag, isDeep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Check for circular references and return its corresponding clone.
|
// Check for circular references and return its corresponding clone.
|
||||||
@@ -119,6 +119,22 @@ define(['./_Stack', './_arrayEach', './_assignValue', './_baseAssign', './_baseA
|
|||||||
}
|
}
|
||||||
stack.set(value, result);
|
stack.set(value, result);
|
||||||
|
|
||||||
|
if (isSet(value)) {
|
||||||
|
value.forEach(function(subValue) {
|
||||||
|
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isMap(value)) {
|
||||||
|
value.forEach(function(subValue, key) {
|
||||||
|
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
var keysFunc = isFull
|
var keysFunc = isFull
|
||||||
? (isFlat ? getAllKeysIn : getAllKeys)
|
? (isFlat ? getAllKeysIn : getAllKeys)
|
||||||
: (isFlat ? keysIn : keys);
|
: (isFlat ? keysIn : keys);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
define(['./_Stack', './_assignMergeValue', './_baseFor', './_baseMergeDeep', './isObject', './keysIn'], function(Stack, assignMergeValue, baseFor, baseMergeDeep, isObject, keysIn) {
|
define(['./_Stack', './_assignMergeValue', './_baseFor', './_baseMergeDeep', './isObject', './keysIn', './_safeGet'], function(Stack, assignMergeValue, baseFor, baseMergeDeep, isObject, keysIn, safeGet) {
|
||||||
|
|
||||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||||
var undefined;
|
var undefined;
|
||||||
@@ -25,7 +25,7 @@ define(['./_Stack', './_assignMergeValue', './_baseFor', './_baseMergeDeep', './
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var newValue = customizer
|
var newValue = customizer
|
||||||
? customizer(object[key], srcValue, (key + ''), object, source, stack)
|
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
if (newValue === undefined) {
|
if (newValue === undefined) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
define(['./_assignMergeValue', './_cloneBuffer', './_cloneTypedArray', './_copyArray', './_initCloneObject', './isArguments', './isArray', './isArrayLikeObject', './isBuffer', './isFunction', './isObject', './isPlainObject', './isTypedArray', './toPlainObject'], function(assignMergeValue, cloneBuffer, cloneTypedArray, copyArray, initCloneObject, isArguments, isArray, isArrayLikeObject, isBuffer, isFunction, isObject, isPlainObject, isTypedArray, toPlainObject) {
|
define(['./_assignMergeValue', './_cloneBuffer', './_cloneTypedArray', './_copyArray', './_initCloneObject', './isArguments', './isArray', './isArrayLikeObject', './isBuffer', './isFunction', './isObject', './isPlainObject', './isTypedArray', './_safeGet', './toPlainObject'], function(assignMergeValue, cloneBuffer, cloneTypedArray, copyArray, initCloneObject, isArguments, isArray, isArrayLikeObject, isBuffer, isFunction, isObject, isPlainObject, isTypedArray, safeGet, toPlainObject) {
|
||||||
|
|
||||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||||
var undefined;
|
var undefined;
|
||||||
@@ -19,8 +19,8 @@ define(['./_assignMergeValue', './_cloneBuffer', './_cloneTypedArray', './_copyA
|
|||||||
* counterparts.
|
* counterparts.
|
||||||
*/
|
*/
|
||||||
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
||||||
var objValue = object[key],
|
var objValue = safeGet(object, key),
|
||||||
srcValue = source[key],
|
srcValue = safeGet(source, key),
|
||||||
stacked = stack.get(srcValue);
|
stacked = stack.get(srcValue);
|
||||||
|
|
||||||
if (stacked) {
|
if (stacked) {
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ define(['./isPlainObject'], function(isPlainObject) {
|
|||||||
* @param {string} key The key of the property to inspect.
|
* @param {string} key The key of the property to inspect.
|
||||||
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
||||||
*/
|
*/
|
||||||
function customOmitClone(value, key) {
|
function customOmitClone(value) {
|
||||||
return (key !== undefined && isPlainObject(value)) ? undefined : value;
|
return isPlainObject(value) ? undefined : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
return customOmitClone;
|
return customOmitClone;
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ define([], function() {
|
|||||||
*/
|
*/
|
||||||
function initCloneArray(array) {
|
function initCloneArray(array) {
|
||||||
var length = array.length,
|
var length = array.length,
|
||||||
result = array.constructor(length);
|
result = new array.constructor(length);
|
||||||
|
|
||||||
// Add properties assigned by `RegExp#exec`.
|
// Add properties assigned by `RegExp#exec`.
|
||||||
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
define(['./_cloneArrayBuffer', './_cloneDataView', './_cloneMap', './_cloneRegExp', './_cloneSet', './_cloneSymbol', './_cloneTypedArray'], function(cloneArrayBuffer, cloneDataView, cloneMap, cloneRegExp, cloneSet, cloneSymbol, cloneTypedArray) {
|
define(['./_cloneArrayBuffer', './_cloneDataView', './_cloneRegExp', './_cloneSymbol', './_cloneTypedArray'], function(cloneArrayBuffer, cloneDataView, cloneRegExp, cloneSymbol, cloneTypedArray) {
|
||||||
|
|
||||||
/** `Object#toString` result references. */
|
/** `Object#toString` result references. */
|
||||||
var boolTag = '[object Boolean]',
|
var boolTag = '[object Boolean]',
|
||||||
@@ -26,16 +26,15 @@ define(['./_cloneArrayBuffer', './_cloneDataView', './_cloneMap', './_cloneRegEx
|
|||||||
* Initializes an object clone based on its `toStringTag`.
|
* Initializes an object clone based on its `toStringTag`.
|
||||||
*
|
*
|
||||||
* **Note:** This function only supports cloning values with tags of
|
* **Note:** This function only supports cloning values with tags of
|
||||||
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to clone.
|
* @param {Object} object The object to clone.
|
||||||
* @param {string} tag The `toStringTag` of the object to clone.
|
* @param {string} tag The `toStringTag` of the object to clone.
|
||||||
* @param {Function} cloneFunc The function to clone values.
|
|
||||||
* @param {boolean} [isDeep] Specify a deep clone.
|
* @param {boolean} [isDeep] Specify a deep clone.
|
||||||
* @returns {Object} Returns the initialized clone.
|
* @returns {Object} Returns the initialized clone.
|
||||||
*/
|
*/
|
||||||
function initCloneByTag(object, tag, cloneFunc, isDeep) {
|
function initCloneByTag(object, tag, isDeep) {
|
||||||
var Ctor = object.constructor;
|
var Ctor = object.constructor;
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case arrayBufferTag:
|
case arrayBufferTag:
|
||||||
@@ -54,7 +53,7 @@ define(['./_cloneArrayBuffer', './_cloneDataView', './_cloneMap', './_cloneRegEx
|
|||||||
return cloneTypedArray(object, isDeep);
|
return cloneTypedArray(object, isDeep);
|
||||||
|
|
||||||
case mapTag:
|
case mapTag:
|
||||||
return cloneMap(object, isDeep, cloneFunc);
|
return new Ctor;
|
||||||
|
|
||||||
case numberTag:
|
case numberTag:
|
||||||
case stringTag:
|
case stringTag:
|
||||||
@@ -64,7 +63,7 @@ define(['./_cloneArrayBuffer', './_cloneDataView', './_cloneMap', './_cloneRegEx
|
|||||||
return cloneRegExp(object);
|
return cloneRegExp(object);
|
||||||
|
|
||||||
case setTag:
|
case setTag:
|
||||||
return cloneSet(object, isDeep, cloneFunc);
|
return new Ctor;
|
||||||
|
|
||||||
case symbolTag:
|
case symbolTag:
|
||||||
return cloneSymbol(object);
|
return cloneSymbol(object);
|
||||||
|
|||||||
@@ -15,10 +15,13 @@ define([], function() {
|
|||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
||||||
*/
|
*/
|
||||||
function isIndex(value, length) {
|
function isIndex(value, length) {
|
||||||
|
var type = typeof value;
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||||||
|
|
||||||
return !!length &&
|
return !!length &&
|
||||||
(typeof value == 'number' || reIsUint.test(value)) &&
|
(type == 'number' ||
|
||||||
(value > -1 && value % 1 == 0 && value < length);
|
(type != 'symbol' && reIsUint.test(value))) &&
|
||||||
|
(value > -1 && value % 1 == 0 && value < length);
|
||||||
}
|
}
|
||||||
|
|
||||||
return isIndex;
|
return isIndex;
|
||||||
|
|||||||
@@ -15,6 +15,14 @@ define(['./_freeGlobal'], function(freeGlobal) {
|
|||||||
/** Used to access faster Node.js helpers. */
|
/** Used to access faster Node.js helpers. */
|
||||||
var nodeUtil = (function() {
|
var nodeUtil = (function() {
|
||||||
try {
|
try {
|
||||||
|
// Use `util.types` for Node.js 10+.
|
||||||
|
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
||||||
|
|
||||||
|
if (types) {
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Legacy `process.binding('util')` for Node.js < 10.
|
||||||
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}());
|
}());
|
||||||
|
|||||||
21
_safeGet.js
Normal file
21
_safeGet.js
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
define([], function() {
|
||||||
|
|
||||||
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||||
|
var undefined;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the value at `key`, unless `key` is "__proto__".
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Object} object The object to query.
|
||||||
|
* @param {string} key The key of the property to get.
|
||||||
|
* @returns {*} Returns the property value.
|
||||||
|
*/
|
||||||
|
function safeGet(object, key) {
|
||||||
|
return key == '__proto__'
|
||||||
|
? undefined
|
||||||
|
: object[key];
|
||||||
|
}
|
||||||
|
|
||||||
|
return safeGet;
|
||||||
|
});
|
||||||
@@ -1,8 +1,7 @@
|
|||||||
define(['./_memoizeCapped'], function(memoizeCapped) {
|
define(['./_memoizeCapped'], function(memoizeCapped) {
|
||||||
|
|
||||||
/** Used to match property names within property paths. */
|
/** Used to match property names within property paths. */
|
||||||
var reLeadingDot = /^\./,
|
var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
||||||
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
|
||||||
|
|
||||||
/** Used to match backslashes in property paths. */
|
/** Used to match backslashes in property paths. */
|
||||||
var reEscapeChar = /\\(\\)?/g;
|
var reEscapeChar = /\\(\\)?/g;
|
||||||
@@ -16,11 +15,11 @@ define(['./_memoizeCapped'], function(memoizeCapped) {
|
|||||||
*/
|
*/
|
||||||
var stringToPath = memoizeCapped(function(string) {
|
var stringToPath = memoizeCapped(function(string) {
|
||||||
var result = [];
|
var result = [];
|
||||||
if (reLeadingDot.test(string)) {
|
if (string.charCodeAt(0) === 46 /* . */) {
|
||||||
result.push('');
|
result.push('');
|
||||||
}
|
}
|
||||||
string.replace(rePropName, function(match, number, quote, string) {
|
string.replace(rePropName, function(match, number, quote, subString) {
|
||||||
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
|
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -40,8 +40,8 @@ define([], function() {
|
|||||||
reOptMod = rsModifier + '?',
|
reOptMod = rsModifier + '?',
|
||||||
rsOptVar = '[' + rsVarRange + ']?',
|
rsOptVar = '[' + rsVarRange + ']?',
|
||||||
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
||||||
rsOrdLower = '\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)',
|
rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
|
||||||
rsOrdUpper = '\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)',
|
rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
|
||||||
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
||||||
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
|
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;
|
||||||
|
|
||||||
|
|||||||
@@ -109,9 +109,11 @@ define(['./isObject', './now', './toNumber'], function(isObject, now, toNumber)
|
|||||||
function remainingWait(time) {
|
function remainingWait(time) {
|
||||||
var timeSinceLastCall = time - lastCallTime,
|
var timeSinceLastCall = time - lastCallTime,
|
||||||
timeSinceLastInvoke = time - lastInvokeTime,
|
timeSinceLastInvoke = time - lastInvokeTime,
|
||||||
result = wait - timeSinceLastCall;
|
timeWaiting = wait - timeSinceLastCall;
|
||||||
|
|
||||||
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
return maxing
|
||||||
|
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
||||||
|
: timeWaiting;
|
||||||
}
|
}
|
||||||
|
|
||||||
function shouldInvoke(time) {
|
function shouldInvoke(time) {
|
||||||
|
|||||||
40
defaults.js
40
defaults.js
@@ -1,8 +1,14 @@
|
|||||||
define(['./_apply', './assignInWith', './_baseRest', './_customDefaultsAssignIn'], function(apply, assignInWith, baseRest, customDefaultsAssignIn) {
|
define(['./_baseRest', './eq', './_isIterateeCall', './keysIn'], function(baseRest, eq, isIterateeCall, keysIn) {
|
||||||
|
|
||||||
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
/** Used as a safe reference for `undefined` in pre-ES5 environments. */
|
||||||
var undefined;
|
var undefined;
|
||||||
|
|
||||||
|
/** Used for built-in method references. */
|
||||||
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
|
/** Used to check objects for own properties. */
|
||||||
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Assigns own and inherited enumerable string keyed properties of source
|
* Assigns own and inherited enumerable string keyed properties of source
|
||||||
* objects to the destination object for all destination properties that
|
* objects to the destination object for all destination properties that
|
||||||
@@ -24,9 +30,35 @@ define(['./_apply', './assignInWith', './_baseRest', './_customDefaultsAssignIn'
|
|||||||
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
||||||
* // => { 'a': 1, 'b': 2 }
|
* // => { 'a': 1, 'b': 2 }
|
||||||
*/
|
*/
|
||||||
var defaults = baseRest(function(args) {
|
var defaults = baseRest(function(object, sources) {
|
||||||
args.push(undefined, customDefaultsAssignIn);
|
object = Object(object);
|
||||||
return apply(assignInWith, undefined, args);
|
|
||||||
|
var index = -1;
|
||||||
|
var length = sources.length;
|
||||||
|
var guard = length > 2 ? sources[2] : undefined;
|
||||||
|
|
||||||
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
||||||
|
length = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (++index < length) {
|
||||||
|
var source = sources[index];
|
||||||
|
var props = keysIn(source);
|
||||||
|
var propsIndex = -1;
|
||||||
|
var propsLength = props.length;
|
||||||
|
|
||||||
|
while (++propsIndex < propsLength) {
|
||||||
|
var key = props[propsIndex];
|
||||||
|
var value = object[key];
|
||||||
|
|
||||||
|
if (value === undefined ||
|
||||||
|
(eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
|
||||||
|
object[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return object;
|
||||||
});
|
});
|
||||||
|
|
||||||
return defaults;
|
return defaults;
|
||||||
|
|||||||
15
invert.js
15
invert.js
@@ -1,5 +1,15 @@
|
|||||||
define(['./constant', './_createInverter', './identity'], function(constant, createInverter, identity) {
|
define(['./constant', './_createInverter', './identity'], function(constant, createInverter, identity) {
|
||||||
|
|
||||||
|
/** Used for built-in method references. */
|
||||||
|
var objectProto = Object.prototype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||||||
|
* of values.
|
||||||
|
*/
|
||||||
|
var nativeObjectToString = objectProto.toString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates an object composed of the inverted keys and values of `object`.
|
* Creates an object composed of the inverted keys and values of `object`.
|
||||||
* If `object` contains duplicate values, subsequent values overwrite
|
* If `object` contains duplicate values, subsequent values overwrite
|
||||||
@@ -19,6 +29,11 @@ define(['./constant', './_createInverter', './identity'], function(constant, cre
|
|||||||
* // => { '1': 'c', '2': 'b' }
|
* // => { '1': 'c', '2': 'b' }
|
||||||
*/
|
*/
|
||||||
var invert = createInverter(function(result, value, key) {
|
var invert = createInverter(function(result, value, key) {
|
||||||
|
if (value != null &&
|
||||||
|
typeof value.toString != 'function') {
|
||||||
|
value = nativeObjectToString.call(value);
|
||||||
|
}
|
||||||
|
|
||||||
result[value] = key;
|
result[value] = key;
|
||||||
}, constant(identity));
|
}, constant(identity));
|
||||||
|
|
||||||
|
|||||||
12
invertBy.js
12
invertBy.js
@@ -6,6 +6,13 @@ define(['./_baseIteratee', './_createInverter'], function(baseIteratee, createIn
|
|||||||
/** Used to check objects for own properties. */
|
/** Used to check objects for own properties. */
|
||||||
var hasOwnProperty = objectProto.hasOwnProperty;
|
var hasOwnProperty = objectProto.hasOwnProperty;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Used to resolve the
|
||||||
|
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
||||||
|
* of values.
|
||||||
|
*/
|
||||||
|
var nativeObjectToString = objectProto.toString;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This method is like `_.invert` except that the inverted object is generated
|
* This method is like `_.invert` except that the inverted object is generated
|
||||||
* from the results of running each element of `object` thru `iteratee`. The
|
* from the results of running each element of `object` thru `iteratee`. The
|
||||||
@@ -33,6 +40,11 @@ define(['./_baseIteratee', './_createInverter'], function(baseIteratee, createIn
|
|||||||
* // => { 'group1': ['a', 'c'], 'group2': ['b'] }
|
* // => { 'group1': ['a', 'c'], 'group2': ['b'] }
|
||||||
*/
|
*/
|
||||||
var invertBy = createInverter(function(result, value, key) {
|
var invertBy = createInverter(function(result, value, key) {
|
||||||
|
if (value != null &&
|
||||||
|
typeof value.toString != 'function') {
|
||||||
|
value = nativeObjectToString.call(value);
|
||||||
|
}
|
||||||
|
|
||||||
if (hasOwnProperty.call(result, value)) {
|
if (hasOwnProperty.call(result, value)) {
|
||||||
result[value].push(key);
|
result[value].push(key);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
185
main.js
185
main.js
@@ -13,7 +13,7 @@
|
|||||||
var undefined;
|
var undefined;
|
||||||
|
|
||||||
/** Used as the semantic version number. */
|
/** Used as the semantic version number. */
|
||||||
var VERSION = '4.17.3';
|
var VERSION = '4.17.10';
|
||||||
|
|
||||||
/** Used as the size to enable large array optimizations. */
|
/** Used as the size to enable large array optimizations. */
|
||||||
var LARGE_ARRAY_SIZE = 200;
|
var LARGE_ARRAY_SIZE = 200;
|
||||||
@@ -144,7 +144,6 @@
|
|||||||
/** Used to match property names within property paths. */
|
/** Used to match property names within property paths. */
|
||||||
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,
|
||||||
reIsPlainProp = /^\w*$/,
|
reIsPlainProp = /^\w*$/,
|
||||||
reLeadingDot = /^\./,
|
|
||||||
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -244,8 +243,8 @@
|
|||||||
reOptMod = rsModifier + '?',
|
reOptMod = rsModifier + '?',
|
||||||
rsOptVar = '[' + rsVarRange + ']?',
|
rsOptVar = '[' + rsVarRange + ']?',
|
||||||
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',
|
||||||
rsOrdLower = '\\d*(?:(?:1st|2nd|3rd|(?![123])\\dth)\\b)',
|
rsOrdLower = '\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])',
|
||||||
rsOrdUpper = '\\d*(?:(?:1ST|2ND|3RD|(?![123])\\dTH)\\b)',
|
rsOrdUpper = '\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])',
|
||||||
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
rsSeq = rsOptVar + reOptMod + rsOptJoin,
|
||||||
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
|
rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,
|
||||||
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';
|
||||||
@@ -438,6 +437,14 @@
|
|||||||
/** Used to access faster Node.js helpers. */
|
/** Used to access faster Node.js helpers. */
|
||||||
var nodeUtil = (function() {
|
var nodeUtil = (function() {
|
||||||
try {
|
try {
|
||||||
|
// Use `util.types` for Node.js 10+.
|
||||||
|
var types = freeModule && freeModule.require && freeModule.require('util').types;
|
||||||
|
|
||||||
|
if (types) {
|
||||||
|
return types;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Legacy `process.binding('util')` for Node.js < 10.
|
||||||
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
return freeProcess && freeProcess.binding && freeProcess.binding('util');
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}());
|
}());
|
||||||
@@ -452,34 +459,6 @@
|
|||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds the key-value `pair` to `map`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} map The map to modify.
|
|
||||||
* @param {Array} pair The key-value pair to add.
|
|
||||||
* @returns {Object} Returns `map`.
|
|
||||||
*/
|
|
||||||
function addMapEntry(map, pair) {
|
|
||||||
// Don't return `map.set` because it's not chainable in IE 11.
|
|
||||||
map.set(pair[0], pair[1]);
|
|
||||||
return map;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Adds `value` to `set`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} set The set to modify.
|
|
||||||
* @param {*} value The value to add.
|
|
||||||
* @returns {Object} Returns `set`.
|
|
||||||
*/
|
|
||||||
function addSetEntry(set, value) {
|
|
||||||
// Don't return `set.add` because it's not chainable in IE 11.
|
|
||||||
set.add(value);
|
|
||||||
return set;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A faster alternative to `Function#apply`, this function invokes `func`
|
* A faster alternative to `Function#apply`, this function invokes `func`
|
||||||
* with the `this` binding of `thisArg` and the arguments of `args`.
|
* with the `this` binding of `thisArg` and the arguments of `args`.
|
||||||
@@ -1246,6 +1225,20 @@
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the value at `key`, unless `key` is "__proto__".
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @param {Object} object The object to query.
|
||||||
|
* @param {string} key The key of the property to get.
|
||||||
|
* @returns {*} Returns the property value.
|
||||||
|
*/
|
||||||
|
function safeGet(object, key) {
|
||||||
|
return key == '__proto__'
|
||||||
|
? undefined
|
||||||
|
: object[key];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts `set` to an array of its values.
|
* Converts `set` to an array of its values.
|
||||||
*
|
*
|
||||||
@@ -2678,7 +2671,7 @@
|
|||||||
if (!cloneableTags[tag]) {
|
if (!cloneableTags[tag]) {
|
||||||
return object ? value : {};
|
return object ? value : {};
|
||||||
}
|
}
|
||||||
result = initCloneByTag(value, tag, baseClone, isDeep);
|
result = initCloneByTag(value, tag, isDeep);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Check for circular references and return its corresponding clone.
|
// Check for circular references and return its corresponding clone.
|
||||||
@@ -2689,6 +2682,22 @@
|
|||||||
}
|
}
|
||||||
stack.set(value, result);
|
stack.set(value, result);
|
||||||
|
|
||||||
|
if (isSet(value)) {
|
||||||
|
value.forEach(function(subValue) {
|
||||||
|
result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isMap(value)) {
|
||||||
|
value.forEach(function(subValue, key) {
|
||||||
|
result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
|
||||||
|
});
|
||||||
|
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
var keysFunc = isFull
|
var keysFunc = isFull
|
||||||
? (isFlat ? getAllKeysIn : getAllKeys)
|
? (isFlat ? getAllKeysIn : getAllKeys)
|
||||||
: (isFlat ? keysIn : keys);
|
: (isFlat ? keysIn : keys);
|
||||||
@@ -3616,7 +3625,7 @@
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
var newValue = customizer
|
var newValue = customizer
|
||||||
? customizer(object[key], srcValue, (key + ''), object, source, stack)
|
? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
if (newValue === undefined) {
|
if (newValue === undefined) {
|
||||||
@@ -3643,8 +3652,8 @@
|
|||||||
* counterparts.
|
* counterparts.
|
||||||
*/
|
*/
|
||||||
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
||||||
var objValue = object[key],
|
var objValue = safeGet(object, key),
|
||||||
srcValue = source[key],
|
srcValue = safeGet(source, key),
|
||||||
stacked = stack.get(srcValue);
|
stacked = stack.get(srcValue);
|
||||||
|
|
||||||
if (stacked) {
|
if (stacked) {
|
||||||
@@ -4552,20 +4561,6 @@
|
|||||||
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a clone of `map`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} map The map to clone.
|
|
||||||
* @param {Function} cloneFunc The function to clone values.
|
|
||||||
* @param {boolean} [isDeep] Specify a deep clone.
|
|
||||||
* @returns {Object} Returns the cloned map.
|
|
||||||
*/
|
|
||||||
function cloneMap(map, isDeep, cloneFunc) {
|
|
||||||
var array = isDeep ? cloneFunc(mapToArray(map), CLONE_DEEP_FLAG) : mapToArray(map);
|
|
||||||
return arrayReduce(array, addMapEntry, new map.constructor);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a clone of `regexp`.
|
* Creates a clone of `regexp`.
|
||||||
*
|
*
|
||||||
@@ -4579,20 +4574,6 @@
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a clone of `set`.
|
|
||||||
*
|
|
||||||
* @private
|
|
||||||
* @param {Object} set The set to clone.
|
|
||||||
* @param {Function} cloneFunc The function to clone values.
|
|
||||||
* @param {boolean} [isDeep] Specify a deep clone.
|
|
||||||
* @returns {Object} Returns the cloned set.
|
|
||||||
*/
|
|
||||||
function cloneSet(set, isDeep, cloneFunc) {
|
|
||||||
var array = isDeep ? cloneFunc(setToArray(set), CLONE_DEEP_FLAG) : setToArray(set);
|
|
||||||
return arrayReduce(array, addSetEntry, new set.constructor);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates a clone of the `symbol` object.
|
* Creates a clone of the `symbol` object.
|
||||||
*
|
*
|
||||||
@@ -5633,8 +5614,8 @@
|
|||||||
* @param {string} key The key of the property to inspect.
|
* @param {string} key The key of the property to inspect.
|
||||||
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
* @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.
|
||||||
*/
|
*/
|
||||||
function customOmitClone(value, key) {
|
function customOmitClone(value) {
|
||||||
return (key !== undefined && isPlainObject(value)) ? undefined : value;
|
return isPlainObject(value) ? undefined : value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -6187,7 +6168,7 @@
|
|||||||
*/
|
*/
|
||||||
function initCloneArray(array) {
|
function initCloneArray(array) {
|
||||||
var length = array.length,
|
var length = array.length,
|
||||||
result = array.constructor(length);
|
result = new array.constructor(length);
|
||||||
|
|
||||||
// Add properties assigned by `RegExp#exec`.
|
// Add properties assigned by `RegExp#exec`.
|
||||||
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {
|
||||||
@@ -6214,16 +6195,15 @@
|
|||||||
* Initializes an object clone based on its `toStringTag`.
|
* Initializes an object clone based on its `toStringTag`.
|
||||||
*
|
*
|
||||||
* **Note:** This function only supports cloning values with tags of
|
* **Note:** This function only supports cloning values with tags of
|
||||||
* `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.
|
* `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
|
||||||
*
|
*
|
||||||
* @private
|
* @private
|
||||||
* @param {Object} object The object to clone.
|
* @param {Object} object The object to clone.
|
||||||
* @param {string} tag The `toStringTag` of the object to clone.
|
* @param {string} tag The `toStringTag` of the object to clone.
|
||||||
* @param {Function} cloneFunc The function to clone values.
|
|
||||||
* @param {boolean} [isDeep] Specify a deep clone.
|
* @param {boolean} [isDeep] Specify a deep clone.
|
||||||
* @returns {Object} Returns the initialized clone.
|
* @returns {Object} Returns the initialized clone.
|
||||||
*/
|
*/
|
||||||
function initCloneByTag(object, tag, cloneFunc, isDeep) {
|
function initCloneByTag(object, tag, isDeep) {
|
||||||
var Ctor = object.constructor;
|
var Ctor = object.constructor;
|
||||||
switch (tag) {
|
switch (tag) {
|
||||||
case arrayBufferTag:
|
case arrayBufferTag:
|
||||||
@@ -6242,7 +6222,7 @@
|
|||||||
return cloneTypedArray(object, isDeep);
|
return cloneTypedArray(object, isDeep);
|
||||||
|
|
||||||
case mapTag:
|
case mapTag:
|
||||||
return cloneMap(object, isDeep, cloneFunc);
|
return new Ctor;
|
||||||
|
|
||||||
case numberTag:
|
case numberTag:
|
||||||
case stringTag:
|
case stringTag:
|
||||||
@@ -6252,7 +6232,7 @@
|
|||||||
return cloneRegExp(object);
|
return cloneRegExp(object);
|
||||||
|
|
||||||
case setTag:
|
case setTag:
|
||||||
return cloneSet(object, isDeep, cloneFunc);
|
return new Ctor;
|
||||||
|
|
||||||
case symbolTag:
|
case symbolTag:
|
||||||
return cloneSymbol(object);
|
return cloneSymbol(object);
|
||||||
@@ -6299,10 +6279,13 @@
|
|||||||
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
* @returns {boolean} Returns `true` if `value` is a valid index, else `false`.
|
||||||
*/
|
*/
|
||||||
function isIndex(value, length) {
|
function isIndex(value, length) {
|
||||||
|
var type = typeof value;
|
||||||
length = length == null ? MAX_SAFE_INTEGER : length;
|
length = length == null ? MAX_SAFE_INTEGER : length;
|
||||||
|
|
||||||
return !!length &&
|
return !!length &&
|
||||||
(typeof value == 'number' || reIsUint.test(value)) &&
|
(type == 'number' ||
|
||||||
(value > -1 && value % 1 == 0 && value < length);
|
(type != 'symbol' && reIsUint.test(value))) &&
|
||||||
|
(value > -1 && value % 1 == 0 && value < length);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -6752,11 +6735,11 @@
|
|||||||
*/
|
*/
|
||||||
var stringToPath = memoizeCapped(function(string) {
|
var stringToPath = memoizeCapped(function(string) {
|
||||||
var result = [];
|
var result = [];
|
||||||
if (reLeadingDot.test(string)) {
|
if (string.charCodeAt(0) === 46 /* . */) {
|
||||||
result.push('');
|
result.push('');
|
||||||
}
|
}
|
||||||
string.replace(rePropName, function(match, number, quote, string) {
|
string.replace(rePropName, function(match, number, quote, subString) {
|
||||||
result.push(quote ? string.replace(reEscapeChar, '$1') : (number || match));
|
result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));
|
||||||
});
|
});
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
@@ -10364,9 +10347,11 @@
|
|||||||
function remainingWait(time) {
|
function remainingWait(time) {
|
||||||
var timeSinceLastCall = time - lastCallTime,
|
var timeSinceLastCall = time - lastCallTime,
|
||||||
timeSinceLastInvoke = time - lastInvokeTime,
|
timeSinceLastInvoke = time - lastInvokeTime,
|
||||||
result = wait - timeSinceLastCall;
|
timeWaiting = wait - timeSinceLastCall;
|
||||||
|
|
||||||
return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;
|
return maxing
|
||||||
|
? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)
|
||||||
|
: timeWaiting;
|
||||||
}
|
}
|
||||||
|
|
||||||
function shouldInvoke(time) {
|
function shouldInvoke(time) {
|
||||||
@@ -12798,9 +12783,35 @@
|
|||||||
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
* _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
||||||
* // => { 'a': 1, 'b': 2 }
|
* // => { 'a': 1, 'b': 2 }
|
||||||
*/
|
*/
|
||||||
var defaults = baseRest(function(args) {
|
var defaults = baseRest(function(object, sources) {
|
||||||
args.push(undefined, customDefaultsAssignIn);
|
object = Object(object);
|
||||||
return apply(assignInWith, undefined, args);
|
|
||||||
|
var index = -1;
|
||||||
|
var length = sources.length;
|
||||||
|
var guard = length > 2 ? sources[2] : undefined;
|
||||||
|
|
||||||
|
if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
||||||
|
length = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
while (++index < length) {
|
||||||
|
var source = sources[index];
|
||||||
|
var props = keysIn(source);
|
||||||
|
var propsIndex = -1;
|
||||||
|
var propsLength = props.length;
|
||||||
|
|
||||||
|
while (++propsIndex < propsLength) {
|
||||||
|
var key = props[propsIndex];
|
||||||
|
var value = object[key];
|
||||||
|
|
||||||
|
if (value === undefined ||
|
||||||
|
(eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {
|
||||||
|
object[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return object;
|
||||||
});
|
});
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -13197,6 +13208,11 @@
|
|||||||
* // => { '1': 'c', '2': 'b' }
|
* // => { '1': 'c', '2': 'b' }
|
||||||
*/
|
*/
|
||||||
var invert = createInverter(function(result, value, key) {
|
var invert = createInverter(function(result, value, key) {
|
||||||
|
if (value != null &&
|
||||||
|
typeof value.toString != 'function') {
|
||||||
|
value = nativeObjectToString.call(value);
|
||||||
|
}
|
||||||
|
|
||||||
result[value] = key;
|
result[value] = key;
|
||||||
}, constant(identity));
|
}, constant(identity));
|
||||||
|
|
||||||
@@ -13227,6 +13243,11 @@
|
|||||||
* // => { 'group1': ['a', 'c'], 'group2': ['b'] }
|
* // => { 'group1': ['a', 'c'], 'group2': ['b'] }
|
||||||
*/
|
*/
|
||||||
var invertBy = createInverter(function(result, value, key) {
|
var invertBy = createInverter(function(result, value, key) {
|
||||||
|
if (value != null &&
|
||||||
|
typeof value.toString != 'function') {
|
||||||
|
value = nativeObjectToString.call(value);
|
||||||
|
}
|
||||||
|
|
||||||
if (hasOwnProperty.call(result, value)) {
|
if (hasOwnProperty.call(result, value)) {
|
||||||
result[value].push(key);
|
result[value].push(key);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "lodash-amd",
|
"name": "lodash-amd",
|
||||||
"version": "4.17.3",
|
"version": "4.17.10",
|
||||||
"description": "Lodash exported as AMD modules.",
|
"description": "Lodash exported as AMD modules.",
|
||||||
"keywords": "amd, modules, stdlib, util",
|
"keywords": "amd, modules, stdlib, util",
|
||||||
"homepage": "https://lodash.com/custom-builds",
|
"homepage": "https://lodash.com/custom-builds",
|
||||||
@@ -14,5 +14,5 @@
|
|||||||
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
"Blaine Bublitz <blaine.bublitz@gmail.com> (https://github.com/phated)",
|
||||||
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
"Mathias Bynens <mathias@qiwi.be> (https://mathiasbynens.be/)"
|
||||||
],
|
],
|
||||||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }
|
"scripts": { "test": "echo \"See https://travis-ci.org/lodash-archive/lodash-cli for testing details.\"" }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user