cloneDeepWith
Performs a deep clone of an object while allowing custom transformation of specific values through a customizer function. If the customizer returns a defined value, it will be used instead of the default deep cloning logic.
obj
(T
): The object to deep clone.customizer
(CloneDeepCustomizer
): Function that transforms specific values during cloning.seen
(WeakMap<object, any>
): Optional WeakMap cache for circular references.CloneDeep<T>
): Deep cloned object with custom transformations applied.