import baseIsEqual from "./_baseIsEqual2.js";
import get from "./get2.js";
import hasIn from "./hasIn2.js";
import isKey from "./_isKey2.js";
import isStrictComparable from "./_isStrictComparable2.js";
import matchesStrictComparable from "./_matchesStrictComparable2.js";
import toKey from "./_toKey2.js";
var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
function baseMatchesProperty(path, srcValue) {
  if (isKey(path) && isStrictComparable(srcValue)) {
    return matchesStrictComparable(toKey(path), srcValue);
  }
  return function(object) {
    var objValue = get(object, path);
    return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
  };
}
export {
  baseMatchesProperty as default
};
//# sourceMappingURL=_baseMatchesProperty2.js.map
