typeid [function]

typeid( var )

returns the first 4 bits of the variable var type flags, as int

typeid( 5 ) == VT_INT; // returns 'true'
typeid( [] ); // returns 7 / VT_OBJECT