This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/@babel/runtime-corejs2/helpers/interopRequireWildcard.js

30 lines
821 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
var _Object$getOwnPropertyDescriptor = require("../core-js/object/get-own-property-descriptor");
var _Object$defineProperty = require("../core-js/object/define-property");
function _interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
var desc = _Object$defineProperty && _Object$getOwnPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : {};
if (desc.get || desc.set) {
_Object$defineProperty(newObj, key, desc);
} else {
newObj[key] = obj[key];
}
}
}
}
newObj["default"] = obj;
return newObj;
}
}
module.exports = _interopRequireWildcard;