Newer
Older
alert / js / node_modules / @babel / runtime / helpers / esm / defineProperty.js
@Réz István Réz István on 18 Nov 2021 269 bytes first commit
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;
}