public final class Helpers extends Object
chart.helpers
.Modifier and Type | Method and Description |
---|---|
NativeObject |
clone(NativeObject source)
Returns a deep copy of source without keeping references on objects and arrays.
|
static Helpers |
get()
Singleton method to get the instance
|
NativeObject |
mergeIf(NativeObject target,
NativeObject source)
Recursively deep copies source properties in the target only if not defined in target.
IMPORTANT: target is not cloned and will be updated with source properties. |
public static Helpers get()
public NativeObject mergeIf(NativeObject target, NativeObject source)
target
- the target object in which all sources are merged into.source
- object to merge in the target.public NativeObject clone(NativeObject source)
source
- the object to clone.