krispy
Version:
Basic synchronous dependency injector
16 lines • 508 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class InjectorUtil {
static isInheritedFrom(base, inherited) {
let proto = Object.getPrototypeOf(inherited);
while (proto && proto !== Function.prototype) {
if (proto === base) {
return true;
}
proto = Object.getPrototypeOf(proto);
}
return false;
}
}
exports.default = InjectorUtil;
//# sourceMappingURL=InjectorUtil.js.map