UI: Refactoring function name
This commit is contained in:
parent
583ef8fe02
commit
aa23fa2722
@ -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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user