def _jsTypeof(o):
if o == None:<EOL><INDENT>return '<STR_LIT:object>'<EOL><DEDENT>elif o == Undefined:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif isinstance(o, bool):<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>if isinstance(o, int) or isinstance(o, float):<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif isinstance(o, list) or isinstance(o, dict):<EOL><INDENT>return '<STR_LIT:object>'<EOL><DEDENT>elif isinstance(o, stringtype):<EOL><INDENT>return '<STR_LIT:string>'<EOL><DEDENT>raise ValueError('<STR_LIT>' % (o, type(o)))<EOL>
Return a string similar to JS's typeof.