defineEnumerableProperties.js 580 B

123456789101112
  1. function _defineEnumerableProperties(e, r) {
  2. for (var t in r) {
  3. var n = r[t];
  4. n.configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, t, n);
  5. }
  6. if (Object.getOwnPropertySymbols) for (var a = Object.getOwnPropertySymbols(r), b = 0; b < a.length; b++) {
  7. var i = a[b];
  8. (n = r[i]).configurable = n.enumerable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, i, n);
  9. }
  10. return e;
  11. }
  12. module.exports = _defineEnumerableProperties, module.exports.__esModule = true, module.exports["default"] = module.exports;