Check If Class Inherits Another
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.
Search
September 01, 20241 min read
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.