toTypedArray Method

Obtain the finished array.

toTypedArray(includeUnusedCapacity: booleanfalse): T

Parameter Type Description
includeUnusedCapacity boolean If true, the length of the returned array will be equal to capacity, with extra bytes initialized to zero; otherwise, the
returned array's length will be equal to length.

Returns - T

Defined in

Last Updated: 17 December, 2024