Merge pull request #935 from alaabouayed/patch-4

Clarity
This commit is contained in:
Ilya Kantor 2019-04-23 20:38:50 +03:00 committed by GitHub
commit b9ca311f19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -214,7 +214,7 @@ The call `.catch(f)` is a complete analog of `.then(null, f)`, it's just a short
### finally
Just like there's a finally clause in a regular `try {...} catch {...}`, there's `finally` in promises.
Just like there's a `finally` clause in a regular `try {...} catch {...}`, there's `finally` in promises.
The call `.finally(f)` is similar to `.then(f, f)` in the sense that it always runs when the promise is settled: be it resolve or reject.