merge.js 396 B

123456789101112131415161718192021
  1. "use strict";
  2. exports.__esModule = true;
  3. exports.default = function (target) {
  4. for (var i = 1, j = arguments.length; i < j; i++) {
  5. var source = arguments[i] || {};
  6. for (var prop in source) {
  7. if (source.hasOwnProperty(prop)) {
  8. var value = source[prop];
  9. if (value !== undefined) {
  10. target[prop] = value;
  11. }
  12. }
  13. }
  14. }
  15. return target;
  16. };
  17. ;