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

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

initial commit

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