arrayiffy-if-string
Advanced tools
Comparing version 3.13.9 to 3.13.10
/** | ||
* arrayiffy-if-string | ||
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* Version: 3.13.9 | ||
* Version: 3.13.10 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * License: MIT |
/** | ||
* arrayiffy-if-string | ||
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* Version: 3.13.9 | ||
* Version: 3.13.10 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -18,11 +18,9 @@ * License: MIT | ||
function arrayiffy(something) { | ||
if (typeof something === "string") { | ||
if (something.length) { | ||
return [something]; | ||
if (typeof something === "string") { | ||
if (something.length) { | ||
return [something]; | ||
} | ||
return []; | ||
} | ||
return []; | ||
} | ||
return something; | ||
return something; | ||
} | ||
@@ -29,0 +27,0 @@ |
/** | ||
* arrayiffy-if-string | ||
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* Version: 3.13.9 | ||
* Version: 3.13.10 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * License: MIT |
/** | ||
* arrayiffy-if-string | ||
* Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else. | ||
* Version: 3.13.9 | ||
* Version: 3.13.10 | ||
* Author: Roy Revelt, Codsen Ltd | ||
@@ -6,0 +6,0 @@ * License: MIT |
{ | ||
"name": "arrayiffy-if-string", | ||
"version": "3.13.9", | ||
"version": "3.13.10", | ||
"description": "Put non-empty strings into arrays, turn empty-ones into empty arrays. Bypass everything else.", | ||
@@ -101,3 +101,3 @@ "keywords": [ | ||
"@rollup/plugin-typescript": "^8.2.0", | ||
"@types/node": "^14.14.35", | ||
"@types/node": "^14.14.36", | ||
"@types/tap": "^14.10.3", | ||
@@ -107,4 +107,4 @@ "@typescript-eslint/eslint-plugin": "^4.19.0", | ||
"eslint": "^7.22.0", | ||
"lect": "^0.16.9", | ||
"rollup": "^2.42.3", | ||
"lect": "^0.16.10", | ||
"rollup": "^2.42.4", | ||
"rollup-plugin-ascii": "^0.0.3", | ||
@@ -111,0 +111,0 @@ "rollup-plugin-banner": "^0.2.1", |
Sorry, the diff of this file is not supported yet
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
13555