ee.Reducer.forEachElement

Separately reduces each position in array inputs of equal shape, producing an array output of the same shape.

For example, with the 'sum' reducer applied to 5 arrays with shape 2x2, the output will be a 2x2 array, where each position is the sum of the 5 values at that position.

UsageReturns
Reducer.forEachElement()Reducer
ArgumentTypeDetails
this: reducerReducerThe reducer to apply to each array element.