import baseFindIndex from "./_baseFindIndex2.js";
import baseIteratee from "./_baseIteratee2.js";
import toInteger from "./toInteger2.js";
var nativeMax = Math.max;
function findIndex(array, predicate, fromIndex) {
  var length = array == null ? 0 : array.length;
  if (!length) {
    return -1;
  }
  var index = fromIndex == null ? 0 : toInteger(fromIndex);
  if (index < 0) {
    index = nativeMax(length + index, 0);
  }
  return baseFindIndex(array, baseIteratee(predicate), index);
}
export {
  findIndex as default
};
//# sourceMappingURL=findIndex2.js.map
