import baseIteratee from "./_baseIteratee2.js";
import isArrayLike from "./isArrayLike2.js";
import keys from "./keys2.js";
function createFind(findIndexFunc) {
  return function(collection, predicate, fromIndex) {
    var iterable = Object(collection);
    if (!isArrayLike(collection)) {
      var iteratee = baseIteratee(predicate);
      collection = keys(collection);
      predicate = function(key) {
        return iteratee(iterable[key], key, iterable);
      };
    }
    var index = findIndexFunc(collection, predicate, fromIndex);
    return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
  };
}
export {
  createFind as default
};
//# sourceMappingURL=_createFind2.js.map
