resize Method
- If newLength is less than current (active) length, just set (active) length.
- If newLength is greater, ensureCapacity (newSize) and pad with padValue up to newSize;
resize(newLength: number, padValue: number = 0): void
| Parameter | Type | Description |
|---|---|---|
| newLength | number | new data count |
| padValue | number | value to use for padding if the length increases. |
Defined in
Last Updated: 08 January, 2020