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

struct.duplicate( [ deepcopy ] )

Returns: any

Argument Description
boolean, optional

if set to true (default) also the child elements are cloned, otherwise the child elements are still the same as in the original object


There are currently no examples for this function

See also