MCPcopy Create free account
hub / github.com/docker/getting-started / _inherits

Function _inherits

app/src/static/js/react-bootstrap.js:8476–8490  ·  view source on GitHub ↗
(subClass, superClass)

Source from the content-addressed store, hash-verified

8474}
8475
8476function _inherits(subClass, superClass) {
8477 if (typeof superClass !== "function" && superClass !== null) {
8478 throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
8479 }
8480
8481 subClass.prototype = Object.create(superClass && superClass.prototype, {
8482 constructor: {
8483 value: subClass,
8484 enumerable: false,
8485 writable: true,
8486 configurable: true
8487 }
8488 });
8489 if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
8490}
8491
8492var MAX_SIGNED_31_BIT_INT = 1073741823; // Inlined Object.is polyfill.
8493// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is

Callers 1

createReactContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…