import isArray_default from "./isArray.js";
import isSymbol_default from "./isSymbol.js";
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
function isKey(i, a) {
	if (isArray_default(i)) return !1;
	var o = typeof i;
	return o == "number" || o == "symbol" || o == "boolean" || i == null || isSymbol_default(i) ? !0 : reIsPlainProp.test(i) || !reIsDeepProp.test(i) || a != null && i in Object(a);
}
var _isKey_default = isKey;
export { _isKey_default as default };
