just-flatten-it
Advanced tools
Comparing version 1.1.23 to 2.0.0
@@ -9,2 +9,5 @@ module.exports = flatten; | ||
function flatten(arr) { | ||
if (!Array.isArray(arr)) { | ||
throw new Error('expected an array'); | ||
} | ||
var result = []; | ||
@@ -11,0 +14,0 @@ var len = arr.length; |
{ | ||
"name": "just-flatten-it", | ||
"version": "1.1.23", | ||
"version": "2.0.0", | ||
"description": "return a flattened array", | ||
@@ -10,8 +10,3 @@ "main": "index.js", | ||
"repository": "https://github.com/angus-c/just", | ||
"keywords": [ | ||
"array", | ||
"flatten", | ||
"no-dependencies", | ||
"just" | ||
], | ||
"keywords": ["array", "flatten", "no-dependencies", "just"], | ||
"author": "Angus Croll", | ||
@@ -18,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
1248
21