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

extra-array

Package Overview
Dependencies
Maintainers
1
Versions
856
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extra-array - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

15

fresh.js

@@ -52,2 +52,16 @@ /**

/**
* Gets least element, as per compare function.
* @param {array} x array
* @param {function?} fn compare function (a, b)
* @returns {*} least element
*/
function min(x, fn) {
if(!fn) return Math.min.apply(null, x);
var a = undefined;
for(var e of x)
a = fn(a, e)<0? a:e;
return a;
}
/**
* Combines values from n arrays, with a function.

@@ -79,2 +93,3 @@ * @param {array} xs n arrays

exports.max = max;
exports.min = min;
exports.zip = zip;

2

package.json
{
"name": "extra-array",
"version": "2.0.8",
"version": "2.0.9",
"description": "Standard utility methods for Array.",

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