6 function lastIndexOf(arr, item, fromIndex) {
12 fromIndex = (fromIndex == null || fromIndex >= len)? len - 1 : fromIndex;
13 fromIndex = (fromIndex < 0)? len + fromIndex : fromIndex;
15 while (fromIndex >= 0) {
16 // we iterate over sparse items since there is no way to make it
17 // work properly on IE 7-8. see #64
18 if (arr[fromIndex] === item) {
27 module.exports = lastIndexOf;