New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

extra-array

Package Overview
Dependencies
Maintainers
1
Versions
858
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.1.9 to 2.1.10

48

fresh.js

@@ -74,28 +74,2 @@ // PURE FUNCTIONS

function foldl() {
}
function foldr() {
}
function scanl() {
}
function scanr() {
}
function unfoldr(e, fn, ths=null) {
var a = [], i = -1;
while(true) {
var p = fn.call(ths, e, ++i, a);
if(p===undefined) return a;
a.push(p[0]);
e = p[1];
}
}
function splitAt(x, i) {

@@ -138,25 +112,3 @@ return [x.slice(0, i), x.slice(i)];

/**
* Inserts a value to an ordered array.
* @param {Array} x array
* @param {*} e element to insert
* @param {function} fn compare function (a, b)
*/
function insert(x, e, fn) {
var i = x.findIndex(f => fn(e, f)>=0);
x.splice(i, 0, e);
return x;
}
/**
* Deletes frist occurrence of an element.
* @param {Array} x array
* @param {*} e element to delete
* @param {function} fn compare function (a, b)
*/
function remove(x, e, fn) {
var i = x.findIndex(f => fn(e, f)===0);
x.splice(i, 1);
return x;
}

@@ -163,0 +115,0 @@

2

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

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

@@ -40,2 +40,5 @@

function takel(x, fn) {
return x.slice();
}

@@ -42,0 +45,0 @@ function searchl(x, fn, ths=null) {

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