Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

object-sizeof

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-sizeof - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

2

index.js

@@ -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",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc