swc/packages/swc-helpers/esm/_define_property.js

9 lines
269 B
JavaScript
Raw Normal View History

export function _define_property(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;
2021-12-05 09:46:09 +03:00
}
export { _define_property as _ };