defineProperty.js 362 B

123456789101112131415
  1. import _Object$defineProperty from "@babel/runtime-corejs3/core-js/object/define-property";
  2. export default 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. }