Comparing version 4.16.2 to 4.16.3
@@ -15,3 +15,3 @@ import baseAssignValue from './_baseAssignValue.js'; | ||
if ((value !== undefined && !eq(object[key], value)) || | ||
(typeof key == 'number' && value === undefined && !(key in object))) { | ||
(value === undefined && !(key in object))) { | ||
baseAssignValue(object, key, value); | ||
@@ -18,0 +18,0 @@ } |
@@ -1,3 +0,2 @@ | ||
/** Built-in value references. */ | ||
var defineProperty = Object.defineProperty; | ||
import defineProperty from './_defineProperty.js'; | ||
@@ -4,0 +3,0 @@ /** |
@@ -23,3 +23,3 @@ import isObject from './isObject.js'; | ||
} | ||
object.prototype = prototype; | ||
object.prototype = proto; | ||
var result = new object; | ||
@@ -26,0 +26,0 @@ object.prototype = undefined; |
@@ -7,2 +7,3 @@ import Stack from './_Stack.js'; | ||
import isArray from './isArray.js'; | ||
import isBuffer from './isBuffer.js'; | ||
import isTypedArray from './isTypedArray.js'; | ||
@@ -57,2 +58,9 @@ | ||
if (isSameTag && isBuffer(object)) { | ||
if (!isBuffer(other)) { | ||
return false; | ||
} | ||
objIsArr = true; | ||
objIsObj = false; | ||
} | ||
if (isSameTag && !objIsObj) { | ||
@@ -59,0 +67,0 @@ stack || (stack = new Stack); |
import assignMergeValue from './_assignMergeValue.js'; | ||
import baseClone from './_baseClone.js'; | ||
import cloneTypedArray from './_cloneTypedArray.js'; | ||
import copyArray from './_copyArray.js'; | ||
import initCloneObject from './_initCloneObject.js'; | ||
import isArguments from './isArguments.js'; | ||
@@ -44,4 +45,7 @@ import isArray from './isArray.js'; | ||
if (isCommon) { | ||
var isArr = isArray(srcValue), | ||
isTyped = !isArr && isTypedArray(srcValue); | ||
newValue = srcValue; | ||
if (isArray(srcValue) || isTypedArray(srcValue)) { | ||
if (isArr || isTyped) { | ||
if (isArray(objValue)) { | ||
@@ -53,8 +57,12 @@ newValue = objValue; | ||
} | ||
else { | ||
else if (isTyped) { | ||
isCommon = false; | ||
newValue = baseClone(srcValue, true); | ||
newValue = cloneTypedArray(srcValue, true); | ||
} | ||
else { | ||
newValue = []; | ||
} | ||
} | ||
else if (isPlainObject(srcValue) || isArguments(srcValue)) { | ||
newValue = objValue; | ||
if (isArguments(objValue)) { | ||
@@ -64,8 +72,4 @@ newValue = toPlainObject(objValue); | ||
else if (!isObject(objValue) || (srcIndex && isFunction(objValue))) { | ||
isCommon = false; | ||
newValue = baseClone(srcValue, true); | ||
newValue = initCloneObject(srcValue); | ||
} | ||
else { | ||
newValue = objValue; | ||
} | ||
} | ||
@@ -72,0 +76,0 @@ else { |
import constant from './constant.js'; | ||
import defineProperty from './_defineProperty.js'; | ||
import identity from './identity.js'; | ||
import nativeDefineProperty from './_nativeDefineProperty.js'; | ||
@@ -13,4 +13,4 @@ /** | ||
*/ | ||
var baseSetToString = !nativeDefineProperty ? identity : function(func, string) { | ||
return nativeDefineProperty(func, 'toString', { | ||
var baseSetToString = !defineProperty ? identity : function(func, string) { | ||
return defineProperty(func, 'toString', { | ||
'configurable': true, | ||
@@ -17,0 +17,0 @@ 'enumerable': false, |
@@ -5,3 +5,4 @@ import isObject from './isObject.js'; | ||
var funcTag = '[object Function]', | ||
genTag = '[object GeneratorFunction]'; | ||
genTag = '[object GeneratorFunction]', | ||
proxyTag = '[object Proxy]'; | ||
@@ -39,5 +40,5 @@ /** Used for built-in method references. */ | ||
var tag = isObject(value) ? objectToString.call(value) : ''; | ||
return tag == funcTag || tag == genTag; | ||
return tag == funcTag || tag == genTag || tag == proxyTag; | ||
} | ||
export default isFunction; |
@@ -48,3 +48,3 @@ /** | ||
/** Used as the semantic version number. */ | ||
var VERSION = '4.16.2'; | ||
var VERSION = '4.16.3'; | ||
@@ -51,0 +51,0 @@ /** Used to compose bitmasks for function metadata. */ |
{ | ||
"name": "lodash-es", | ||
"version": "4.16.2", | ||
"version": "4.16.3", | ||
"description": "Lodash exported as ES modules.", | ||
@@ -5,0 +5,0 @@ "keywords": "es6, modules, stdlib, util", |
@@ -1,2 +0,2 @@ | ||
# lodash-es v4.16.2 | ||
# lodash-es v4.16.3 | ||
@@ -10,2 +10,2 @@ The [Lodash](https://lodash.com/) library exported as [ES](http://www.ecma-international.org/ecma-262/6.0/) modules. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.16.2-es) for more details. | ||
See the [package source](https://github.com/lodash/lodash/tree/4.16.3-es) for more details. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
620588
19420