toTypedArray Method

Obtain the finished array.

toTypedArray(includeUnusedCapacity: boolean = false): T

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

Returns - T

Defined in

Last Updated: 16 April, 2024