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

array-tools

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-tools - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

test/common.js

2

lib/array-tools.js

@@ -285,2 +285,4 @@ "use strict";

result.push(a[i]);
} else {
break;
}

@@ -287,0 +289,0 @@ }

2

package.json
{
"name": "array-tools",
"author": "Lloyd Brookes <75pound@gmail.com>",
"version": "1.5.0",
"version": "1.5.1",
"description": "Useful functions for working with arrays",

@@ -6,0 +6,0 @@ "repository": "https://github.com/75lb/array-tools.git",

var test = require("tape"),
w = require("../");
a = require("../");

@@ -9,7 +9,7 @@ test("findWhere", function(t){

];
t.deepEqual(w.findWhere(arr, { result: true }), null);
t.deepEqual(w.findWhere(arr, { result: false }), { result: false, number: 1 });
t.deepEqual(w.findWhere(arr, { result: false, number: 3 }), null);
t.deepEqual(w.findWhere(arr, { result: false, number: 2 }), { result: false, number: 2 });
t.deepEqual(a.findWhere(arr, { result: true }), null);
t.deepEqual(a.findWhere(arr, { result: false }), { result: false, number: 1 });
t.deepEqual(a.findWhere(arr, { result: false, number: 3 }), null);
t.deepEqual(a.findWhere(arr, { result: false, number: 2 }), { result: false, number: 2 });
t.end();
});
var test = require("tape"),
w = require("../");
a = require("../");
test("without (array)", function(t){
var array = [ 1,2,3,4 ];
t.deepEqual(w.without(array, [ 2, 3 ]), [ 1, 4 ]);
t.deepEqual(a.without(array, [ 2, 3 ]), [ 1, 4 ]);
t.end();
});
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