codesnippetjavascript

class ParentClass {}
class ChildClass {}
 
ChildClass.prototype instanceof ParentClass

Checking for ancestry without having an instance of the child class, just a reference to the class itself.