Perform a deep clone of the given value.
This function supports cloning:
Date
Map
RegExp
Set
Symbol
The following values are NOT cloned:
Error
Node
Function
{}
The value to recursively clone.
Returns the deep cloned value.
Perform a deep clone of the given value.
This function supports cloning:
Date
,Map
,RegExp
Set
Symbol
The following values are NOT cloned:
Error
(and subclasses) - Cloned value will reference the same Error instance.Node
(and subclasses) - Cloned value will return the same DOM reference.Function
(and arrow functions) - Cloned value will be an empty object{}