cloneWith
Performs a shallow clone of a value, invoking a customizer function to transform cloned values. If the customizer returns a defined value, it will be used instead of the default clone logic.
value
(T
): The value to clone.customizer
(Customizer<T>
): Function that transforms cloned values.T
): The cloned value with custom transformations applied.