Read the online help. 😄
(Quote: ... This function pads or truncates the data if necessary. ... You also can use it to increase and decrease the size of a 1D array... )
The reshape function allows trimming and padding of arrays. you can also use the array subset function, for example. Same difference.