object-sizeof
Advanced tools
Comparing version 1.5.0 to 1.5.1
@@ -55,3 +55,3 @@ // Copyright 2014 Andrei Karpushonak | ||
if (Array.isArray(object)) { | ||
return object.map(sizeof).reduce((acc, curr) => acc + curr) | ||
return object.map(sizeof).reduce((acc, curr) => acc + curr, 0) | ||
} else { | ||
@@ -58,0 +58,0 @@ return sizeOfObject(object) |
{ | ||
"name": "object-sizeof", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "Sizeof of a JavaScript object in Bytes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
7886