import baseMatches from "./_baseMatches.mjs";
import baseMatchesProperty from "./_baseMatchesProperty.mjs";
import identity from "./identity.mjs";
import isArray from "./isArray.mjs";
import property from "./property.mjs";
function baseIteratee(value) {
  if (typeof value == "function") {
    return value;
  }
  if (value == null) {
    return identity;
  }
  if (typeof value == "object") {
    return isArray(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
  }
  return property(value);
}
export {
  baseIteratee as default
};
