"use strict";
const isArray$1 = require("./isArray.js");
const isSymbol$1 = require("./isSymbol.js");
var isArray = isArray$1, isSymbol = isSymbol$1;
var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
function isKey(value, object) {
  if (isArray(value)) {
    return false;
  }
  var type = typeof value;
  if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol(value)) {
    return true;
  }
  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
}
var _isKey = isKey;
module.exports = _isKey;
//# sourceMappingURL=_isKey.js.map
