lastIndexOf
Returns the last index whose element equals element, or -1 when no match exists.
Searches backwards from the last index and stops at the first match, using generic element equality.
Return
the last matching index, or -1.
Parameters
element
value to search for.