initialType

initialType: Uint8ArrayConstructor | Uint32ArrayConstructor | Uint16ArrayConstructor

The type of the initial empty TypedArray created by the builder. For example, if you know that you will be adding values larger than 255 to the array, specify { initialType: Uint16Array } to avoid replacing the otherwise default Uint8Array when the first such value is added. Default: Uint8Array.

Defined in

Last Updated: 14 November, 2024