import { c as callBound$1 } from "../call-bind/callBound.js";
import { s as shams } from "../has-tostringtag/shams.js";
var callBound = callBound$1;
var $strValueOf = callBound("String.prototype.valueOf");
var tryStringObject = function tryStringObject2(value) {
  try {
    $strValueOf(value);
    return true;
  } catch (e) {
    return false;
  }
};
var $toString = callBound("Object.prototype.toString");
var strClass = "[object String]";
var hasToStringTag = shams();
var isString = function isString2(value) {
  if (typeof value === "string") {
    return true;
  }
  if (!value || typeof value !== "object") {
    return false;
  }
  return hasToStringTag ? tryStringObject(value) : $toString(value) === strClass;
};
export {
  isString as i
};
//# sourceMappingURL=index.js.map
