import isArguments_default from "./isArguments.js";
import isArray_default from "./isArray.js";
import isLength_default from "./isLength.js";
import _isIndex_default from "./_isIndex.js";
import _castPath_default from "./_castPath.js";
import _toKey_default from "./_toKey.js";
function hasPath(o, s, c) {
	s = _castPath_default(s, o);
	for (var l = -1, u = s.length, d = !1; ++l < u;) {
		var f = _toKey_default(s[l]);
		if (!(d = o != null && c(o, f))) break;
		o = o[f];
	}
	return d || ++l != u ? d : (u = o == null ? 0 : o.length, !!u && isLength_default(u) && _isIndex_default(f, u) && (isArray_default(o) || isArguments_default(o)));
}
var _hasPath_default = hasPath;
export { _hasPath_default as default };
