00001
00011 function baseIndexOfWith(array, value, fromIndex, comparator) {
00012 var index = fromIndex - 1,
00013 length = array.length;
00014
00015 while (++index < length) {
00016 if (comparator(array[index], value)) {
00017 return index;
00018 }
00019 }
00020 return -1;
00021 }
00022
00023 module.exports = baseIndexOfWith;