elemIndex package:ListLike

Returns the index of the element, if it exists.