typeof [function]

typeof( var )

returns the type name of variable var, as string

typeof( 5 ); // returns "real"
typeof( [] ); // returns "array"