TidyType
Same as native function typeof
but:
- returns
"regex"
for regular expression, "array"
for array,"null"
for null,"NaN"
for NaN and"arguments"
for arguments, the native JS object.
How to use
Prerequisites
None
Parameters
val - variable or value of which to return type
Example
//Undefined type //'undefined' //'undefined' //Number type //'number' //'number' //NaN type //'NaN' //String type //'string' //'string' //Boolean type //'boolean' //'boolean' //Function type //'function' //Object type //'object' //Array type //'array' //Null type //'null' //Regex type //'regex' //Native arguments object typevar { return ;} //'arguments'});