MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / inherits

Function inherits

code/styling/public/app.js:20096–20110  ·  view source on GitHub ↗
(subClass, superClass)

Source from the content-addressed store, hash-verified

20094
20095
20096var inherits = function (subClass, superClass) {
20097 if (typeof superClass !== "function" && superClass !== null) {
20098 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
20099 }
20100
20101 subClass.prototype = Object.create(superClass && superClass.prototype, {
20102 constructor: {
20103 value: subClass,
20104 enumerable: false,
20105 writable: true,
20106 configurable: true
20107 }
20108 });
20109 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
20110};
20111
20112
20113

Callers 3

app.jsFile · 0.85
createStyledComponentFunction · 0.85
wrapWithThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected