Thanks Simon, but I found something better.
That function, in case of an array:
var inteiro = ["aaa","bbb"];
Log.Message(aqObject.GetVarType(inteiro));
Gives me the code 9, wich is not an array. It works for strings though...
I found this function that works:
function _typeof(value)
{
switch(typeof(value))
{
case "string":
return (value.match(/\d{1,2}[\/.-]\d{1,2}[\/.-]\d{2,4}/) != null) ? "date" : "string";
break;
case "object":
try
{ value.join() }
catch(e)
{
if(e.number == -2146827850)
return "object"
else
throw e;
}
return "array";
break;
default:
return typeof(value);
}
}