JS Built-ins
AbortControllerbeginner

AbortController β€” typeof signal is object

πŸ“– Usage Example
const ac = new AbortController()
ac.signal instanceof AbortSignal  // β†’ true

The signal property is an AbortSignal that can be monitored for cancellation.

AbortController signal type

The signal property is an object.

Challenge: Verify that typeof new AbortController().signal is 'object'.

πŸ’‘ Hints (1)
  • β€’ typeof on any object (other than null) returns "object"