summaryrefslogtreecommitdiff
path: root/school/node_modules/@babel/runtime/helpers/esm/defineProperty.js
blob: 59bfb0c4393a657b6dd3b229ced7428fd796ed38 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
export default 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;
}