length property

  1. @Since('3.6')
int length

The length in elements of this Array.

Implementation

@Since('3.6')
external int get length;
  1. @Since('3.6')
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

@Since('3.6')
external set length(int newLength);