extends.js 297 B

12345678910111213
  1. export default Object.assign || function (target) {
  2. for (var i = 1; i < arguments.length; i++) {
  3. var source = arguments[i];
  4. for (var key in source) {
  5. if (Object.prototype.hasOwnProperty.call(source, key)) {
  6. target[key] = source[key];
  7. }
  8. }
  9. }
  10. return target;
  11. };