Missed exclamation mark
This commit is contained in:
parent
e2f9e58407
commit
e1db5dcebe
1 changed files with 1 additions and 1 deletions
|
@ -248,7 +248,7 @@ Promise.any([
|
||||||
]).catch(error => {
|
]).catch(error => {
|
||||||
console.log(error.constructor.name); // AggregateError
|
console.log(error.constructor.name); // AggregateError
|
||||||
console.log(error.errors[0]); // Error: Ouch!
|
console.log(error.errors[0]); // Error: Ouch!
|
||||||
console.log(error.errors[1]); // Error: Error
|
console.log(error.errors[1]); // Error: Error!
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue