Promise.any([Promise.reject(new Error('e1')), Promise.reject(new Error('e2'))])
.catch(e => e instanceof AggregateError) // β truePromise.any() rejects with an AggregateError when all promises reject.
AggregateError extends the built-in Error class.
Challenge: Verify that an AggregateError is also an instance of Error.