deep-clone-fn
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -19,4 +19,6 @@ /* eslint-disable @typescript-eslint/no-unsafe-assignment */ | ||
} | ||
Object.defineProperty(to, property, fromDescriptor); | ||
if (fromDescriptor.writable) { | ||
if (fromDescriptor.writable === false) { | ||
Object.defineProperty(to, property, fromDescriptor); | ||
} | ||
else { | ||
to[property] = clone(from[property]); | ||
@@ -23,0 +25,0 @@ } |
{ | ||
"name": "deep-clone-fn", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Deep clone a function.", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
6493
84