length property

int length

The length in elements of this Array.

Implementation

external int get length;
void length=(int newLength)

Sets the length in elements of this Array.

Setting it smaller than the current length truncates this Array, and setting it larger adds empty slots, which requires T to be nullable.

Implementation

external set length(int newLength);