Returns a new duplicated version of the given object, removing all references to the old one

Duplicate( object [, deepcopy ] )

Returns: any

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.



There are currently no examples for this function.

See also