ee.Array.length

Returns a 1-D ee.Array containing the length of each dimension of the given ee.Array.
UsageReturns
Array.length()Array
ArgumentTypeDetails
this: arrayArrayThe array from which to extract the axis lengths.