class Dynamics
package thx
Dynamics
provides additional extension methods on any type.
Static methods
staticclone (v:Dynamic, cloneInstances:Bool = false):Dynamic
Clone the object.
Null values, strings, dates, numbers, enums and functions are immutable so will be returned as is.
Anonymous objects will be created and each field cloned recursively.
Arrays will be recreated and each object cloned recursively.
Class instances will either be cloned, or the reference copied, depending on the value of cloneInstances
.
Parameters:
v | The object which will be cloned. |
---|---|
cloneInstances | If true, class instances will be cloned using |