ee.List.indexOf

Returns the position of the first occurrence of element in list, or -1 if list does not contain element.

UsageReturns
List.indexOf(element)Integer
ArgumentTypeDetails
this: listList
elementObject