AthenaShared.utility.deepCopy ​
Functions ​
deepCloneArray ​
Usage
AthenaShared.utility.deepCopy.deepCloneArray<T>(data): T[]
Makes a complete copy of an array and all objects.
Type parameters ​
| Name |
|---|
T |
Parameters ​
| Name | Type |
|---|---|
data | (object | T)[] |
Returns ​
T[]
Defined in ​
deepCloneObject ​
Usage
AthenaShared.utility.deepCopy.deepCloneObject<T>(data): T
Used to deep clone an object and detach all references. Does not work with functions. This is required to prevent data from being modified in other items.
Type parameters ​
| Name |
|---|
T |
Parameters ​
| Name | Type |
|---|---|
data | object |
Returns ​
T
V5 Docs