How does one get the name of the Parse.Object instance (using Parse.com JavaScript SDK)? Say, I have a custom class called Contact, how do I check that an object is of class named Contact?
I tried the following console.logs following recommendations from this SO post, but none of the logs contain any reference to the Contact class:
console.log(Object.prototype.toString.call(contact));
console.log(contact.constructor);
console.log(contact.constructor.name);