appolo-utils
Advanced tools
Comparing version 0.0.58 to 0.0.59
@@ -9,3 +9,3 @@ "use strict"; | ||
static arrayify(val) { | ||
return val ? (Array.isArray(val) ? val : [val]) : []; | ||
return undefined === val ? [] : (Array.isArray(val) ? val : [val]); | ||
} | ||
@@ -12,0 +12,0 @@ static nullifyEmptyArray(arr) { |
@@ -9,3 +9,3 @@ import {Classes} from "./classes"; | ||
public static arrayify<T>(val: any): T[] { | ||
return val ? (Array.isArray(val) ? val : [val]) : []; | ||
return undefined === val ? [] : (Array.isArray(val) ? val : [val]); | ||
} | ||
@@ -12,0 +12,0 @@ |
@@ -17,3 +17,3 @@ { | ||
"main": "./index.js", | ||
"version": "0.0.58", | ||
"version": "0.0.59", | ||
"license": "MIT", | ||
@@ -20,0 +20,0 @@ "repository": { |
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
125527