ee.List.replace

Replaces the first occurrence of oldVal in list with newVal.

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