array-to-sentence
Advanced tools
Comparing version 1.0.2 to 1.0.3
10
index.js
@@ -12,6 +12,2 @@ /*! | ||
if (arr.length === 0) { | ||
return ''; | ||
} | ||
options = options || {}; | ||
@@ -41,4 +37,8 @@ | ||
if (arr.length === 0) { | ||
return ''; | ||
} | ||
if (arr.length === 1) { | ||
return arr[arr.length - 1]; | ||
return arr[0]; | ||
} | ||
@@ -45,0 +45,0 @@ |
{ | ||
"name": "array-to-sentence", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Join all elements of an array and create a human-readable string", | ||
@@ -30,7 +30,7 @@ "repository": "shinnn/array-to-sentence", | ||
"devDependencies": { | ||
"@shinnn/eslint-config": "^1.1.0", | ||
"eslint": "^1.6.0", | ||
"istanbul": "^0.3.22", | ||
"tape": "^4.2.1" | ||
"@shinnn/eslint-config": "^1.2.0", | ||
"eslint": "^1.7.3", | ||
"istanbul": "^0.4.0", | ||
"tape": "^4.2.2" | ||
} | ||
} |
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
5532