18 lines
No EOL
366 B
JavaScript
18 lines
No EOL
366 B
JavaScript
var _Object$defineProperty = require("../core-js/object/define-property");
|
|
|
|
function _defineProperty(obj, key, value) {
|
|
if (key in obj) {
|
|
_Object$defineProperty(obj, key, {
|
|
value: value,
|
|
enumerable: true,
|
|
configurable: true,
|
|
writable: true
|
|
});
|
|
} else {
|
|
obj[key] = value;
|
|
}
|
|
|
|
return obj;
|
|
}
|
|
|
|
module.exports = _defineProperty; |