import type { Ctor } from './utilityTypes' ; param value param base export function classExtends < T extends Ctor > ( value , base ) { let ctor = value ; while ( ctor !== null ) { if ( ctor === base ) return true ; ctor = Object . getPrototypeOf ( ctor ) ; } return false ; }