array.resize [method]

array.resize( int size )

changes the size of the array, returns the array for chaining

a = [ 5, 6, 7 ];
a.resize( 5 ); // a = [5,6,7,null,null]
a.resize( 2 ); // a = [5,6]