typeof-arguments
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -17,3 +17,5 @@ module.exports = function(a,o,c){ | ||
var act = typeName(a[x]); | ||
var exp = t.split('|').map((i)=>i[0].toUpperCase()+i.slice(1).toLowerCase()).join('|'); | ||
var exp = t.split('|').map((i)=>{ | ||
return i==='null'||i==='undefined' ? i.toLowerCase():i[0].toUpperCase()+i.slice(1).toLowerCase(); | ||
}).join('|'); | ||
if(clb){ | ||
@@ -20,0 +22,0 @@ c(`[${act}]`,`[${exp}]`); |
{ | ||
"name": "typeof-arguments", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Validate the types of arguments passed to the function.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6996
41