ee.Image.arrayDimensions

Returns the number of dimensions in each array band, and 0 for scalar image bands.
UsageReturns
Image.arrayDimensions()Image
ArgumentTypeDetails
this: inputImageInput image.