title: How to find the Object type of a SAPUI5 element at runtime
body: <p>I am wondering how to get the object type of a SAPUI5 Javascript object at runtime. I can check if the object is of a particular type like so:</p>
  
  <pre><code>myObj instanceof sap.m.List
  </code></pre>
  
  <p>I'm looking for the equivalent of .getClass() in the Java world. I've tried a few approaches described on various other SO threads such as <a href="https://stackoverflow.com/questions/332422/how-do-i-get-the-name-of-an-objects-type-in-javascript">How do I get the name of an objects type in Javascript</a></p>
  
  <p>There doesn't seem to be a standard approach, and none I've tried seem to work for UI5. This isn't causing me a problem but debugging in dev tools with my Java head on it would be nice to get the object type and therefore know what methods I can call.</p>
  
  <p>Cheers,
  Gregor</p>