Skip to content

Commit 8f52daa

Browse files
authored
fix: typo conscise -> concise (#34)
1 parent 1d2e3c2 commit 8f52daa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2279,14 +2279,14 @@ downloadPage('https://en.wikipedia.org/wiki/Robert_Cecil_Martin', 'article.html'
22792279
.catch(error => console.error(error));
22802280
```
22812281

2282-
Promises supports a few helper methods that help make code more conscise:
2282+
Promises supports a few helper methods that help make code more concise:
22832283

22842284
| Pattern | Description |
22852285
| ------------------------ | ----------------------------------------- |
22862286
| `Promise.resolve(value)` | Convert a value into a resolved promise. |
22872287
| `Promise.reject(error)` | Convert an error into a rejected promise. |
2288-
| `Promise.all(promises)` |Returns a new promise which is fulfilled with an array of fulfillment values for the passed promises or rejects with the reason of the first promise that rejects. |
2289-
| `Promise.race(promises)`|Returns a new promise which is fulfilled/rejected with the result/error of the first settled promise from the array of passed promises. |
2288+
| `Promise.all(promises)` | Returns a new promise which is fulfilled with an array of fulfillment values for the passed promises or rejects with the reason of the first promise that rejects. |
2289+
| `Promise.race(promises)`| Returns a new promise which is fulfilled/rejected with the result/error of the first settled promise from the array of passed promises. |
22902290

22912291
`Promise.all` is especially useful when there is a need to run tasks in parallel. `Promise.race` makes it easier to implement things like timeouts for promises.
22922292

0 commit comments

Comments
 (0)