CKTIS / JavaScript
AbortSignal.aborted — reading cancellation state
AbortSignal.aborted is a read-only instance property. It returns true when the signal has been aborted, or false otherwise. It lets you inspect the current state but does not itself cancel an operation.
Version: ECMAScript and Web APIs; exact feature edition and browser support reviewed per entry; Node 24 in repository does not prove browser API support
Syntax
signal.abortedAbortSignal.aborted describes an instance property of AbortSignal, read as signal.aborted, without parentheses. It returns a Boolean: false if the signal has not been aborted, or true if it has. It is neither a static method nor a writable property.
Obtain a signal through controller.signal, where controller is an AbortController instance. Calling controller.abort() sets the aborted state; a subsequent read of signal.aborted returns true. An aborted signal cannot return to its initial state—use a new controller for a new, independent operation.
Reading the property does not stop work, throw an exception, or register notifications. An operation must support the supplied signal, or your code must respond to its state. false does not mean the operation succeeded. To react to later cancellation, use the abort event; also account for a signal that was already aborted before listener registration.
This is a Web API defined by the DOM standard, not a feature of a particular ECMAScript edition. MDN reports broad browser availability since April 2018, including Web Workers. Having Node 24 in a repository does not establish support in target browsers.
Examples
const controller = new AbortController();
const signal = controller.signal;
console.log(signal.aborted);
controller.abort();
console.log(signal.aborted);Result
false true
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.