let isString=value=>{try{return"[object String]"===Object.prototype.toString.call(value)}catch{return!1}},isError=(value,errorType)=>{try{return"[object Error]"!==Object.prototype.toString.call(value)?!1:(!errorType||value instanceof errorType)&&(!("message"in value)||isString(value.message))}catch{return!1}};exports.isError=isError;