MCPcopy Create free account
hub / github.com/LevelUpWeb3/app / customizer

Function customizer

src/utils/common.ts:92–102  ·  view source on GitHub ↗
(value: any, srcValue: any)

Source from the content-addressed store, hash-verified

90 }
91
92 const customizer = (value: any, srcValue: any): any => {
93 // Handle arrays specially
94 if (Array.isArray(value) && Array.isArray(srcValue)) {
95 return srcValue.filter((item) => !isNil(item));
96 }
97
98 // Skip nullish values from source
99 if (isNil(srcValue)) {
100 return value;
101 }
102 };
103
104 // First, merge all objects
105 const merged = mergeWith({}, target, ...sources, customizer);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected