admin
2020-12-31 91fce32b078d7e29aa0260e5e47c7df602c4c5ee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
var setPrototypeOf = require("./setPrototypeOf");
 
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);
}
 
module.exports = _inherits;