An accurate function for getting the type of a variable in JavaScript, using the fact that Object.prototype.toString() is guaranteed to return an object's internal [[Class]] property when called on it. There's also the isclass() helper function that takes an object and one or more class name strings, and returns True if the class of obj matches any of the arguments.