summaryrefslogtreecommitdiff
path: root/school/node_modules/@babel/runtime/helpers/defineProperty.js
blob: ad352fdf7e7709dc3f93909399a64f68a25d5c5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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, module.exports.__esModule = true, module.exports["default"] = module.exports;