65480ef4351ea5d53331da73527464c6a038b909eac54f31bfe06ea268fa91a93306124daed900320b2f6d1cc1c224c88ed39705495216351d763950db9bb0 347 B

123456789101112131415
  1. export default function(target) {
  2. for (let i = 1, j = arguments.length; i < j; i++) {
  3. let source = arguments[i] || {};
  4. for (let prop in source) {
  5. if (source.hasOwnProperty(prop)) {
  6. let value = source[prop];
  7. if (value !== undefined) {
  8. target[prop] = value;
  9. }
  10. }
  11. }
  12. }
  13. return target;
  14. };