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

16 lines
444 B
JavaScript
Raw Normal View History

2024-01-16 21:26:16 +08:00
var toPropertyKey = require("./toPropertyKey.js");
2023-12-18 13:12:25 +08:00
function _defineProperty(obj, key, value) {
2024-01-16 21:26:16 +08:00
key = toPropertyKey(key);
2023-12-18 13:12:25 +08:00
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
}
2024-01-16 21:26:16 +08:00
module.exports = _defineProperty, module.exports.__esModule = true, module.exports["default"] = module.exports;