Socket
Socket
Sign inDemoInstall

clone-deep

Package Overview
Dependencies
8
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

11

index.js

@@ -35,13 +35,12 @@ 'use strict';

return res;
} else if (typeof instanceClone === 'function') {
}
if (typeof instanceClone === 'function') {
return instanceClone(obj);
} else {
return obj;
}
return obj;
}
function cloneArrayDeep(arr, instanceClone) {
var len = arr.length, res = [];
var i = -1;
while (++i < len) {
var res = [];
for (var i = 0; i < arr.length; i++) {
res[i] = cloneDeep(arr[i], instanceClone);

@@ -48,0 +47,0 @@ }

{
"name": "clone-deep",
"description": "Recursively (deep) clone JavaScript native types, like Object, Array, RegExp, Date as well as primitives.",
"version": "2.0.0",
"version": "2.0.1",
"homepage": "https://github.com/jonschlinkert/clone-deep",

@@ -26,3 +26,3 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)",

"kind-of": "^6.0.0",
"shallow-clone": "^1.0.0"
"shallow-clone": "^2.0.0"
},

@@ -35,2 +35,3 @@ "devDependencies": {

"array",
"assign",
"clone",

@@ -44,14 +45,11 @@ "clone-array",

"clone-reg-exp",
"clone-regex",
"clone-regexp",
"date",
"deep",
"exp",
"for",
"for-in",
"for-own",
"javascript",
"extend",
"mixin",
"mixin-object",
"object",
"own",
"reg",
"shallow",
"util",

@@ -58,0 +56,0 @@ "utility"

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc