export abstract class AClassHierarchyTrackable { public isInstanceOfClass ( className ) { let proto = this . constructor . prototype ; while ( proto ) { if ( className === proto . constructor . name ) { return true ; } proto = proto . __proto__ ; } return false ; } }