Skip to content
On this page

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

NameType
data(object | T)[]

Returns

T[]

Defined in

shared/utility/deepCopy.ts:29


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

NameType
dataobject

Returns

T

Defined in

shared/utility/deepCopy.ts:9

Created by Stuyk | Est. 2020