Sha256: 1dd3a2fd11b8fc2b1849a5ea12f21f9287da8fa5aa99eb09becedfad871f277a

Contents?: true

Size: 487 Bytes

Versions: 48

Compression:

Stored size: 487 Bytes

Contents

import setPrototypeOf from "./setPrototypeOf";
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

48 entries across 48 versions & 8 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.18.0 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
disco_app-0.18.2 test/dummy/node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.7 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.6 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.5 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.4 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.3 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.2 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.1 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.3.5 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-5.0.0 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.3.4 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.3.3 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.3.2 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.3.1 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.3 node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.2.3 node_modules/@babel/runtime/helpers/esm/inherits.js
tang-0.2.1 spec/tang_app/node_modules/@babel/runtime/helpers/esm/inherits.js
trusty-cms-4.2.2 node_modules/@babel/runtime/helpers/esm/inherits.js