Repository URL to install this package:
|
Version:
1.2.9 ▾
|
"use strict";
// @flow
Object.defineProperty(exports, "__esModule", { value: true });
function hasInInheritanceChain(child, parent) {
let target = child;
while (target) {
target = Object.getPrototypeOf(target);
if (target && target === parent) {
return true;
}
}
return false;
}
exports.default = hasInInheritanceChain;
//# sourceMappingURL=hasInInheritanceChain.js.map