Lang
Clonedeepwith

_.cloneDeepWith()

cloneDeepWith(value, [customizer])

This method is like _.cloneWith except that it recursively clones value.

Arguments

value (*): The value to recursively clone.
[customizer] (Function): The function to customize cloning.

Returns

(*): Returns the deep cloned value.

Example