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  

Defined in

Last Updated: 08 January, 2020