ee.Array.signum

On an element-wise basis, computes the signum function (sign) of the input; 0 if the input is 0, 1 if the input is greater than 0, -1 if the input is less than 0.

UsageReturns
Array.signum()Array
ArgumentTypeDetails
this: inputArrayThe input array.