title: Get the class name of ES6 class instance
body: <p>Are there any 'harmonious' ways to get the class name from ES6 class instance? Other than</p>
  
  <pre><code>someClassInstance.constructor.name
  </code></pre>
  
  <p>Currently I'm counting on Traceur implementation. And it seems that Babel has a polyfill for <code>Function.name</code> while Traceur doesn't.</p>
  
  <p><em>To sum it all up: there was no other way in ES6/ES2015/Harmony, and nothing is expected ATM in ES.Next.</em></p>
  
  <p><em>It may provide useful patterns for unminified server-side applications but is unwanted in applications meant for browser/desktop/mobile.</em></p>
  
  <p><em>Babel <a href="https://babeljs.io/docs/usage/polyfill/" rel="noreferrer">uses <code>core-js</code></a> to polyfill <a href="https://github.com/zloirock/core-js#ecmascript-6-function" rel="noreferrer"><code>Function.name</code></a>, it should be loaded manually for Traceur and TypeScript applications as appropriate.</em></p>