mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-28 03:15:16 +00:00
24 lines
540 B
JavaScript
24 lines
540 B
JavaScript
|
"use strict";
|
||
|
|
||
|
exports.__esModule = true;
|
||
|
|
||
|
var _defineProperty = require("../core-js/object/define-property");
|
||
|
|
||
|
var _defineProperty2 = _interopRequireDefault(_defineProperty);
|
||
|
|
||
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
||
|
exports.default = function (obj, key, value) {
|
||
|
if (key in obj) {
|
||
|
(0, _defineProperty2.default)(obj, key, {
|
||
|
value: value,
|
||
|
enumerable: true,
|
||
|
configurable: true,
|
||
|
writable: true
|
||
|
});
|
||
|
} else {
|
||
|
obj[key] = value;
|
||
|
}
|
||
|
|
||
|
return obj;
|
||
|
};
|