Check If Class Inherits Another

#codesnippet #javascript

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.