ee.Image.clamp

Clamps the values in all bands of an image to all lie within the specified range.
UsageReturns
Image.clamp(low, high)Image
ArgumentTypeDetails
this: inputImageThe image to clamp.
lowFloatThe minimum allowed value in the range.
highFloatThe maximum allowed value in the range.