ensureCapacity Method

  • If the capacity (Float64Array length) is less than or equal to the requested newCapacity, do nothing
  • If the requested newCapacity is larger than the existing capacity, reallocate (and copy existing values) with the larger capacity.

ensureCapacity(newCapacity: number): void

Parameter Type Description
newCapacity number  

Returns - void

Defined in

Last Updated: 13 June, 2024