source: trip-planner-front/node_modules/@babel/runtime/helpers/inherits.js

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 586 bytes
Line 
1var setPrototypeOf = require("./setPrototypeOf.js");
2
3function _inherits(subClass, superClass) {
4 if (typeof superClass !== "function" && superClass !== null) {
5 throw new TypeError("Super expression must either be null or a function");
6 }
7
8 subClass.prototype = Object.create(superClass && superClass.prototype, {
9 constructor: {
10 value: subClass,
11 writable: true,
12 configurable: true
13 }
14 });
15 if (superClass) setPrototypeOf(subClass, superClass);
16}
17
18module.exports = _inherits;
19module.exports["default"] = module.exports, module.exports.__esModule = true;
Note: See TracBrowser for help on using the repository browser.