ee.List.indexOf

Returns the position of the first occurrence of target in list, or -1 if list does not contain target.
UsageReturns
List.indexOf(element)Integer
ArgumentTypeDetails
this: listList
elementObject