Is there a JavaScript equivalent of Java\'s class.getName()?
class.getName()
Jason Bunting's answer gave me enough of a clue to find what I needed:
<>.constructor.name
So, for example, in the following piece of code:
function MyObject() {} var myInstance = new MyObject();
myInstance.constructor.name would return "MyObject".
myInstance.constructor.name
"MyObject"