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

karl-common-util

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karl-common-util - npm Package Compare versions

Comparing version 1.4.5 to 1.4.6

19

dist/array/index.js

@@ -63,2 +63,8 @@ "use strict";

break;
case "max":
findEle[id] = Math.max(findEle[id], vJson[id]);
break;
case "min":
findEle[id] = Math.min(findEle[id], vJson[id]);
break;
}

@@ -84,2 +90,15 @@ });

};
}
if (!Array.prototype.toNestArray) {
Array.prototype.toNestArray = function (num) {
var data = this.concat();
var newData = [];
for (var i = 0; i < Math.ceil((data.length + 1) / num); i++) {
var start = i * num;
var end = (i + 1) * num;
newData.push(data.slice(start, end));
}
return newData;
};
}

2

package.json
{
"name": "karl-common-util",
"version": "1.4.5",
"version": "1.4.6",
"description": "karl common lib for client and server",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -52,2 +52,8 @@ if (!Array.prototype.aggregate) {

break
case "max":
findEle[id] = Math.max(findEle[id], vJson[id])
break
case "min":
findEle[id] = Math.min(findEle[id], vJson[id])
break
}

@@ -69,2 +75,15 @@ })

}
}
if (!Array.prototype.toNestArray) {
Array.prototype.toNestArray = function (num) {
let data = this.concat()
let newData = []
for (let i = 0; i < Math.ceil((data.length + 1) / num); i++) {
let start = i * num
let end = (i + 1) * num
newData.push(data.slice(start, end))
}
return newData
}
}
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