lodash._baseclone
Advanced tools
Comparing version 4.5.2 to 4.5.3
12
index.js
/** | ||
* lodash 4.5.2 (Custom Build) <https://lodash.com/> | ||
* lodash 4.5.3 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -731,2 +731,3 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* @param {boolean} [isDeep] Specify a deep clone. | ||
* @param {boolean} [isFull] Specify a clone including symbols. | ||
* @param {Function} [customizer] The function to customize cloning. | ||
@@ -738,3 +739,3 @@ * @param {string} [key] The key of `value`. | ||
*/ | ||
function baseClone(value, isDeep, customizer, key, object, stack) { | ||
function baseClone(value, isDeep, isFull, customizer, key, object, stack) { | ||
var result; | ||
@@ -769,3 +770,4 @@ if (customizer) { | ||
if (!isDeep) { | ||
return copySymbols(value, baseAssign(result, value)); | ||
result = baseAssign(result, value); | ||
return isFull ? copySymbols(value, result) : result; | ||
} | ||
@@ -789,5 +791,5 @@ } else { | ||
(isArr ? arrayEach : baseForOwn)(value, function(subValue, key) { | ||
assignValue(result, key, baseClone(subValue, isDeep, customizer, key, value, stack)); | ||
assignValue(result, key, baseClone(subValue, isDeep, isFull, customizer, key, value, stack)); | ||
}); | ||
return isArr ? result : copySymbols(value, result); | ||
return (isFull && !isArr) ? copySymbols(value, result) : result; | ||
} | ||
@@ -794,0 +796,0 @@ |
{ | ||
"name": "lodash._baseclone", | ||
"version": "4.5.2", | ||
"version": "4.5.3", | ||
"description": "The internal lodash function `baseClone` exported as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash._baseclone v4.5.2 | ||
# lodash._baseclone v4.5.3 | ||
@@ -18,2 +18,2 @@ The internal [lodash](https://lodash.com/) function `baseClone` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.5.2-npm-packages/lodash._baseclone) for more details. | ||
See the [package source](https://github.com/lodash/lodash/blob/4.5.3-npm-packages/lodash._baseclone) 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
45710
1503