UNPKG

@buka/nestjs-type-helper

Version:
11 lines (10 loc) 246 B
export function isSubclassOf(target, base) { let proto = target.prototype; while (proto) { if (proto === base.prototype) { return true; } proto = Object.getPrototypeOf(proto); } return false; }