ee.Array.reshape

Reshapes an array to a new list of dimension lengths.

UsageReturns
Array.reshape(shape)Array
ArgumentTypeDetails
this: arrayArrayArray to reshape.
shapeArrayNew shape to which arrays are converted. If one component of the shape is the special value -1, the size of that dimension is computed so that the total size remains constant. In particular, a shape of [-1] flattens into 1-D. At most one component of shape can be -1.