ee.PixelType.dimensions

Returns the number of dimensions for this type. Will be 0 for scalar values and >= 1 for array values.

UsageReturns
PixelType.dimensions()Integer
ArgumentTypeDetails
this: pixelTypePixelType