"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _baseFindIndex = require("./_baseFindIndex.cjs");
const _baseIteratee = require("./_baseIteratee.cjs");
const toInteger = require("./toInteger.cjs");
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.default(fromIndex);
  if (index < 0) {
    index = nativeMax(length + index, 0);
  }
  return _baseFindIndex.default(array, _baseIteratee.default(predicate), index);
}
exports.default = findIndex;
//# sourceMappingURL=findIndex.cjs.map
