11 lines
300 B
JavaScript
11 lines
300 B
JavaScript
|
"use strict";
|
||
|
|
||
|
exports._ = exports._define_property = _define_property;
|
||
|
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;
|
||
|
}
|