initialCapacity

initialCapacity: number | undefined

The number of elements to allocate memory for in the TypedArray when creating the builder. If you know the minimum number of elements you intend to add to the builder, you should specify that as the initial capacity to avoid reallocations when populating the array. Default: 0. Minimum: 0.

Defined in

Last Updated: 23 November, 2024