Socket
Socket
Sign inDemoInstall

array-to-sentence

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-to-sentence - npm Package Compare versions

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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc