lastIndexOf function in javascript
by gowtham[ Edit ] 2010-01-28 20:03:11
lastIndexOf(targetElement, [startIndex]
Returns the first index in which targetElment (value) is found within an array starting from the last element and backwards, or -1 if nothing is found. An optional [startIndex] lets you specify the position in which to begin the search (default is array.length-1, or search entire array).