objectSpread.js 533 B

1234567891011121314
  1. import defineProperty from "./defineProperty.js";
  2. function _objectSpread(e) {
  3. for (var r = 1; r < arguments.length; r++) {
  4. var t = null != arguments[r] ? Object(arguments[r]) : {},
  5. o = Object.keys(t);
  6. "function" == typeof Object.getOwnPropertySymbols && o.push.apply(o, Object.getOwnPropertySymbols(t).filter(function (e) {
  7. return Object.getOwnPropertyDescriptor(t, e).enumerable;
  8. })), o.forEach(function (r) {
  9. defineProperty(e, r, t[r]);
  10. });
  11. }
  12. return e;
  13. }
  14. export { _objectSpread as default };