Type guard for AbortError
Value to check
True if the value is an AbortError
if (isAbortError(error)) { console.log("Request was aborted");} Copy
if (isAbortError(error)) { console.log("Request was aborted");}
Type guard for AbortError