defineProperty.js 464 B

12345678910111213141516171819
  1. var _Object$defineProperty = require("@babel/runtime-corejs3/core-js/object/define-property");
  2. function _defineProperty(obj, key, value) {
  3. if (key in obj) {
  4. _Object$defineProperty(obj, key, {
  5. value: value,
  6. enumerable: true,
  7. configurable: true,
  8. writable: true
  9. });
  10. } else {
  11. obj[key] = value;
  12. }
  13. return obj;
  14. }
  15. module.exports = _defineProperty;
  16. module.exports["default"] = module.exports, module.exports.__esModule = true;