copyArray

Creates a new dynamic array of the same size and copies the contents of the dynamic array into it. This function supports arrays with complex constant structures, unlike the 'dup' function.

T[]
copyArray
(
T
)
(
const T[] arr
)
if (
!is(T == class)
)

Parameters

arr T[]

The dynamic array.

Return Value

Type: T[]

A copy of the required array.

Meta