import mergeWith from 'lodash/mergeWith';
export default function combineRecords(record1, record2) {
  return mergeWith({}, record1, record2, (objValue, srcValue) => {
    if (Array.isArray(objValue)) {
      return objValue.concat(srcValue);
    }
    return srcValue;
  });
}