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

@gitrows/gitrows-utils

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gitrows/gitrows-utils - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

18

lib/data.js

@@ -257,2 +257,20 @@ const Data={

empty: (obj, deep = false) => {
if (Object.keys(obj).length === 0 && obj.constructor === Object)
return deep?Data.empty(Object.values(obj),true):true;
if (Array.isArray(obj)){
if (obj.length === 0)
return true;
if (deep)
obj.forEach((item) => {
if (item.length !== 0)
return false
});
return false;
}
if (obj === null) return true;
return false;
},
max: arr => arr.sort((a,b)=>a-b).pop(),

@@ -259,0 +277,0 @@

2

package.json
{
"name": "@gitrows/gitrows-utils",
"version": "0.3.4",
"version": "0.3.5",
"description": "Data and string handling utilities for @gitrows",

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