Comparing version 1.0.9 to 1.0.10
{ | ||
"name": "fclone", | ||
"version": "1.0.9", | ||
"version": "1.0.10", | ||
"description": "Clone objects by dropping circular references", | ||
@@ -5,0 +5,0 @@ "main": "dist/fclone.js", |
@@ -23,3 +23,3 @@ 'use strict'; | ||
// typed array Int32Array etc. | ||
if (/\d[a-z]*Array]$/i.test(Object.prototype.toString.call(obj))) { | ||
if (typeof obj.subarray === 'function' && /[A-Z][A-Za-z\d]+Array/.test(Object.prototype.toString.call(obj))) { | ||
return obj.subarray(0); | ||
@@ -26,0 +26,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
11948