lastIndexOf
_.lastIndexOf(value, array)
# Ⓢ [Ⓣ][1] Ⓝ
This method is like _.indexOf except that it iterates over elements of
array from right to left.
Since
0.1.0
Arguments
value(*): The value to search for.array(Array): The array to inspect.
Returns
(number): Returns the index of the matched value, else -1.
Example
_.lastIndexOf(2, [1, 2, 1, 2]);
// => 3