function i(e) {
  var s = e.reduce(function(t, a) {
    var n = t[a.name];
    return t[a.name] = n ? Object.assign({}, n, a, {
      options: Object.assign({}, n.options, a.options),
      data: Object.assign({}, n.data, a.data)
    }) : a, t;
  }, {});
  return Object.keys(s).map(function(t) {
    return s[t];
  });
}
export {
  i as default
};
//# sourceMappingURL=mergeByName.js.map
