def standardizeJSType(vartype):
 if vartype:
  typename = known_javascript_types.get(vartype.lower(), None)
  if (typename is None):
   return vartype
  return typename

def standardizeJSType ( vartype ) : if vartype : typename = known_javascript_types . get ( vartype . lower ( ) , None ) if ( typename is None ) : return vartype return typename
return a standardized name for the given type if it is a known type .