Lucee Function Reference
Function DUPLICATE
Returns a new duplicated version of the given object, removing all references to the old one
Example
duplicate(any object,[boolean deepcopy]):any
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Default Value | Description |
---|---|---|---|---|
object | any | Yes | Name of a variable to duplicate | |
deepcopy | boolean | No | true | if set to true (default) also the child elements are cloned, otherwise the child elements are still the same as in the original object |