Deep clones an object return copy of primitives and embedded objects. Also sets the prototype of the object so that if the source value is a class the clone will be an instance of the same class.
This method does not support deep recursive objects where object in the object graph refers to a parent or child.
object
Deep copy of an object
Deep clones an object return copy of primitives and embedded objects. Also sets the prototype of the object so that if the source value is a class the clone will be an instance of the same class.
This method does not support deep recursive objects where object in the object graph refers to a parent or child.