// @ts-nocheck

const objectKeys = obj => Object.keys(obj);
export const deepMerge = (source, additional) => {
  const result = {
    ...source
  };
  objectKeys(additional).forEach(key => {
    if (key && additional[key] && typeof additional[key] === 'object') {
      // @ts-ignore
      result[key] = deepMerge(source[key], additional[key]);
    } else {
      // @ts-ignore
      result[key] = additional[key];
    }
  });
  return result;
};
//# sourceMappingURL=deepMerge.js.map