Depth to which the object is to be cloned (optional, defaults to Infinity)
Set to true if the non-enumerable properties should be cloned as well. Non-enumerable properties on the prototype chain will be ignored. (optional, defaults to false)
Sets the prototype to be used when cloning an Object. (optional, defaults to proto of the to be cloned value, ie. the cloned object will have the same prototype as the original).
Generated using TypeDoc
Defaults to true. Call clone with circular set to false if you are certain that obj contains no circular references. This will give better performance if needed. There is no error if undefined or null is passed as