How to get a JavaScript object's class?
Question seems already answered but the OP wants to access the class of and object, just like we do in Java and the selected answer is not enough (imho). With the following explanation, we can get a class of an object(it's actually called prototype in javascript).
https://stackoverflow.com/questions/1249531/how-to-get-a-javascript-objects-class