Hallo,
Is there some decent way how to get the object class name in a string
format?
Currently I use this:
function getClassName(ob j) {
if (typeof obj != "object" || obj === null) return false;
return /(\w+)\(/.exec(obj.const ructor.toString ())[1];
}
This approach supports also custom classes.
But, it seems pretty awkward to do Function.toStri ng to get...