If you don't mind tech-related ads, and want to keep us running, whitelist JSFiddle in your ad blocker.
Thank you! ❤️
Does not seem to work, but saving for reference.
If you use typeof, it will return object as type for many (all?), but not its class. This function, getClass, grabs the class.