class thx.Dynamics
Available on all platforms
Dynamics
provides additional extension methods on any type.
Class Fields
static function clone(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 |
static function compare(a:Dynamic, b:Dynamic):Int
Compares two runtime values trying to match values.