JS Built-ins
AggregateErrorintermediate

AggregateError β€” .errors array

πŸ“– Usage Example
new AggregateError([]) instanceof Error  // β†’ true

AggregateError extends Error and inherits all standard error properties.

AggregateError .errors

The .errors property holds all the errors passed to the constructor.

Challenge: Verify that .errors.length equals the number of errors passed.

πŸ’‘ Hints (1)
  • β€’ The .errors property is an array of all errors passed to the AggregateError constructor.