Creates an object clone.
obj.clone();
A new object.
The clone function creates a fast copy of the object. Instead of physically copying each property and method of the source object - it creates a clone as a âsubclassâ of the source object, i.e. properties and methods are inherited from the source object into the clone.
Note that the clone continues to be dependent on the source object. Changes in the source object property or method will affect all the clones unless this property is already overwritten in the clone object itself.