Comparing version 1.5.1 to 1.5.2
@@ -12,8 +12,18 @@ /** | ||
var result = ""; | ||
if(values != null && values instanceof Array) { | ||
for(var i=0; i<values.length; i++) { | ||
if(values != null) { | ||
var valuesArray; | ||
if(values instanceof Object) { | ||
if (values instanceof Array) { | ||
valuesArray = values; | ||
} else { | ||
valuesArray = Object.keys(values); | ||
} | ||
} else { | ||
valuesArray = [values]; | ||
} | ||
for(var i=0; i<valuesArray.length; i++) { | ||
if(i>0) { | ||
result += separator; | ||
} | ||
var value = values[i]; | ||
var value = valuesArray[i]; | ||
if(func != null) { | ||
@@ -20,0 +30,0 @@ value = func(value); |
{ | ||
"name": "gutil", | ||
"description": "GUtil", | ||
"version": "1.5.1", | ||
"version": "1.5.2", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "licenses": [ |
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
49041
1457