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: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.