clone
Clones an object, returning a new object containing the same properties.
Return
The cloned object.
Parameters
object
The object to clone.
deep
If true, all properties will be deep cloned recursively. Default value - false
Clones an object, returning a new object containing the same properties.
The cloned object.
The object to clone.
If true, all properties will be deep cloned recursively. Default value - false