I am getting this error when trying to subtract the array with its mean value in Google Earth Engine JavaScript API
var from = ee.Array([2,3])
var meann = from.reduce(ee.Reducer.mean(),[0])
var to = ee.List.repeat(meann, from.length().get([0]))
var subtraction = from.subtract(to)
print(subtraction)
to
is a list,from
an array, hence the error