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.9 to 2.0.10

22

fresh.js

@@ -0,1 +1,4 @@

// PURE FUNCTIONS
// - behave like math functions
// - dont manipulate input arrays
/**

@@ -87,2 +90,20 @@ * Gets first element of array.

}
// IMPURE FUNCTIONS
// - dont behave like math functions
// - manipulate input arrays
/**
* Appends arrays to end to input array!
* @param {array} x input array
* @param {...array} ys arrays to append
* @returns input array (modified!)
*/
function append(x, ...ys) {
for(var y of ys)
Array.prototype.push.apply(x, y);
return x;
}
exports.head = head;

@@ -95,1 +116,2 @@ exports.last = last;

exports.zip = zip;
exports.append = append;

2

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

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

@@ -6,3 +6,3 @@ cons

remove
xor

@@ -9,0 +9,0 @@ xorBy

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