_.lastIndexOf

lastIndexOf_.lastIndexOf(array, value, [fromIndex])
Returns the index of the last occurrence of value in the array, or -1 if value is not present. Pass fromIndex to start your search at a given index.

_.lastIndexOf([1, 2, 3, 1, 2, 3], 2);
=> 4
doc_Underscore
2016-04-09 09:05:29
Comments
Leave a Comment

Please login to continue.