You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

just-intersect

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

just-intersect - npm Package Compare versions

Comparing version

to
2.0.0

3

index.js

@@ -8,2 +8,5 @@ module.exports = intersect;

function intersect(arr1, arr2) {
if (!Array.isArray(arr1) || !Array.isArray(arr2)) {
throw new Error('expected both arguments to be arrays');
}
var result = [];

@@ -10,0 +13,0 @@ var len = arr1.length;

9

package.json
{
"name": "just-intersect",
"version": "1.1.22",
"version": "2.0.0",
"description": "return the intersect of two arrays",

@@ -10,8 +10,3 @@ "main": "index.js",

"repository": "https://github.com/angus-c/just",
"keywords": [
"array",
"intersect",
"no-dependencies",
"just"
],
"keywords": ["array", "intersect", "no-dependencies", "just"],
"author": "Angus Croll",

@@ -18,0 +13,0 @@ "license": "MIT",