objectSpread.js 609 B

1234567891011121314
  1. var defineProperty = require("./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. module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports;