Web APIs
AbortSignal.aborted
Indicates whether the signal has entered its irreversible aborted state.
Formal Syntax & Structure
javascript syntaxjavascript
signal.abortedReturn Value
boolean
True after cancellation.
Working Example
Example Snippetjavascript
const c=new AbortController(); console.log(c.signal.aborted); c.abort(); console.log(c.signal.aborted);