iter::lastIndexOf
lastIndexOf(items, target)
lastIndexOf(items, target, startIndex: Integer)
Parameter | Type | Description |
---|---|---|
items | Iterable | The Iterable to look in |
target | * | The value to search for |
(optional) startIndex | Integer | Which index to start at |
Returns
(Integer) The index of the last item with the given value, or -1 if no match was found.