Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lodash._baseclone

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash._baseclone - npm Package Compare versions

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.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc