ee.List.replace

Replaces the first occurrence of oldval in list with newval.

UsageReturns
List.replace(oldval, newval)List
ArgumentTypeDetails
this: listList
oldvalObject
newvalObject