From 8f52daaea48b7bca50c25235dbec006aae4023de Mon Sep 17 00:00:00 2001 From: Junwoo Ji Date: Tue, 21 Apr 2020 21:46:02 +0900 Subject: [PATCH] fix: typo conscise -> concise (#34) --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 078dcbb..20d2fcf 100644 --- a/README.md +++ b/README.md @@ -2279,14 +2279,14 @@ downloadPage('https://en.wikipedia.org/wiki/Robert_Cecil_Martin', 'article.html' .catch(error => console.error(error)); ``` -Promises supports a few helper methods that help make code more conscise: +Promises supports a few helper methods that help make code more concise: | Pattern | Description | | ------------------------ | ----------------------------------------- | | `Promise.resolve(value)` | Convert a value into a resolved promise. | | `Promise.reject(error)` | Convert an error into a rejected promise. | -| `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. | -| `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. | +| `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. | +| `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. | `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.