Returns a new duplicated version of the given object, removing all references to the old one
Duplicate( object=any, deepCopy=boolean );
Argument |
Description |
Default |
any,
required
|
Name of a variable to duplicate
Alias:
variable_name, obj
|
|
boolean,
optional
|
If set to true (default) the child elements are also cloned.
If false, child elements retain a reference to their corresponding element in the original object.
Note: deeply cloned elements that are not native Lucee objects (i.e. Java objects) may change data type when they can be converted to a native CFML object.
|
true
|
Examples
See also