UI: Refactoring function name

This commit is contained in:
Artem Dzhereleiko 2024-07-01 15:10:14 +03:00
parent 583ef8fe02
commit aa23fa2722

View File

@ -364,14 +364,14 @@ export function mergeDeep<T>(target: T, ...sources: T[]): T {
return _.merge(target, ...sources); return _.merge(target, ...sources);
} }
function customizer(target: any, sources: any) { function ignoreArrayMergeFunc(target: any, sources: any) {
if (_.isArray(target)) { if (_.isArray(target)) {
return sources; return sources;
} }
} }
export function mergeDeepIgnoreArray<T>(target: T, ...sources: T[]): T { export function mergeDeepIgnoreArray<T>(target: T, ...sources: T[]): T {
return _.mergeWith(target, ...sources, customizer); return _.mergeWith(target, ...sources, ignoreArrayMergeFunc);
} }
export function guid(): string { export function guid(): string {