just-compact
Advanced tools
Comparing version 1.0.0 to 2.0.0
@@ -7,3 +7,3 @@ module.exports = compact; | ||
compact([]); // [] | ||
compact({}); // undefined | ||
compact({}); // throws | ||
*/ | ||
@@ -13,3 +13,3 @@ | ||
if (!Array.isArray(arr)) { | ||
return undefined; | ||
throw new Error('expected an array'); | ||
} | ||
@@ -16,0 +16,0 @@ var result = []; |
{ | ||
"name": "just-compact", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "returns a copy of an array with falsey values removed", | ||
@@ -10,9 +10,3 @@ "main": "index.js", | ||
"repository": "https://github.com/angus-c/just", | ||
"keywords": [ | ||
"array", | ||
"compact", | ||
"falsey", | ||
"no-dependencies", | ||
"just" | ||
], | ||
"keywords": ["array", "compact", "falsey", "no-dependencies", "just"], | ||
"author": "Angus Croll", | ||
@@ -19,0 +13,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1376