Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
view-container / dist / utils / hasInInheritanceChain.js
Size: Mime:
"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