1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@babel/runtime/helpers/get.js

23 lines
600 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
var superPropBase = require("./superPropBase");
function _get(target, property, receiver) {
if (typeof Reflect !== "undefined" && Reflect.get) {
module.exports = _get = Reflect.get;
} else {
module.exports = _get = function _get(target, property, receiver) {
var base = superPropBase(target, property);
if (!base) return;
var desc = Object.getOwnPropertyDescriptor(base, property);
if (desc.get) {
return desc.get.call(receiver);
}
return desc.value;
};
}
return _get(target, property, receiver || target);
}
module.exports = _get;