extends.js 487 B

123456789101112131415161718192021
  1. var _Object$assign = require("../core-js/object/assign");
  2. function _extends() {
  3. module.exports = _extends = _Object$assign || function (target) {
  4. for (var i = 1; i < arguments.length; i++) {
  5. var source = arguments[i];
  6. for (var key in source) {
  7. if (Object.prototype.hasOwnProperty.call(source, key)) {
  8. target[key] = source[key];
  9. }
  10. }
  11. }
  12. return target;
  13. };
  14. return _extends.apply(this, arguments);
  15. }
  16. module.exports = _extends;