Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "fclone", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Clone objects recursively by dropping circular references", | ||
@@ -5,0 +5,0 @@ "main": "dist/fclone.js", |
@@ -7,5 +7,3 @@ 'use strict'; | ||
if (obj instanceof Date) { | ||
let copy = new Date(); | ||
copy.setTime(obj.getTime()); | ||
return copy; | ||
return new Date(obj); | ||
} | ||
@@ -40,4 +38,2 @@ | ||
copy.stack = obj.stack; | ||
refs.length && refs.length-- | ||
return copy; | ||
} | ||
@@ -44,0 +40,0 @@ |
Sorry, the diff of this file is not supported yet
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
7775
11
173