This method is like indexOf except that it iterates the collection from right to left.
The index of the found value, else -1
lastIndexOf([1, 2, 1, 2], 2)// 3// Search from the `fromIndex`.lastIndexOf([1, 2, 1, 2], 2, 2)// 1
The array to inspect.
The value to find
Optional
The index to search from.
Generated using TypeDoc
This method is like indexOf except that it iterates the collection from right to left.
Returns
The index of the found value, else -1
Example
See