ee.Array.signum

On an element-wise basis, computes the signum function (sign) of the input; zero if the input is zero, 1 if the input is greater than zero, -1 if the input is less than zero.
UsageReturns
Array.signum()Array
ArgumentTypeDetails
this: inputArrayThe input array.