Sha256: 67339cd8a06094573c36b57765f476327bea44cbe2289433ff7ab3de2ca39ab5

Contents?: true

Size: 490 Bytes

Versions: 34

Compression:

Stored size: 490 Bytes

Contents

import setPrototypeOf from "./setPrototypeOf.js";
export default function _inherits(subClass, superClass) {
  if (typeof superClass !== "function" && superClass !== null) {
    throw new TypeError("Super expression must either be null or a function");
  }

  subClass.prototype = Object.create(superClass && superClass.prototype, {
    constructor: {
      value: subClass,
      writable: true,
      configurable: true
    }
  });
  if (superClass) setPrototypeOf(subClass, superClass);
}

Version data entries

34 entries across 33 versions & 5 rubygems

Version Path
isomorfeus-redux-4.2.0 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.18 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.17 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.16 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.15 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.14 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.13 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.12 node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.16.1 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.11 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.10 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.9 node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.15.2 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.8 node_modules/@babel/runtime/helpers/esm/inherits.js
isomorfeus-redux-4.1.7 node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.18.4 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.18.1 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.12.7.pre.puma.pre.3 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.14.0 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js