just-intersect
Advanced tools
+3
-0
@@ -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; |
+2
-7
| { | ||
| "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", |
1188
8.99%18
20%