merge.js 286 B

1234567891011
  1. import { merge } from '@corex/deepmerge';
  2. export const overwriteMerge = (...configs) => {
  3. return merge(configs, {
  4. arrayMergeType: 'overwrite',
  5. });
  6. };
  7. export const combineMerge = (...configs) => {
  8. return merge(configs, {
  9. arrayMergeType: 'combine',
  10. });
  11. };