source: trip-planner-front/node_modules/@babel/runtime/helpers/esm/get.js@ 1ad8e64

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

initial commit

  • Property mode set to 100644
File size: 556 bytes
Line 
1import superPropBase from "./superPropBase.js";
2export default function _get(target, property, receiver) {
3 if (typeof Reflect !== "undefined" && Reflect.get) {
4 _get = Reflect.get;
5 } else {
6 _get = function _get(target, property, receiver) {
7 var base = superPropBase(target, property);
8 if (!base) return;
9 var desc = Object.getOwnPropertyDescriptor(base, property);
10
11 if (desc.get) {
12 return desc.get.call(receiver);
13 }
14
15 return desc.value;
16 };
17 }
18
19 return _get(target, property, receiver || target);
20}
Note: See TracBrowser for help on using the repository browser.