Created
April 7, 2019 18:35
-
-
Save khaosdoctor/95ae60691465727757f7bd34c4610caa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Promise.all([ | |
new Promise(resolve => setTimeout(resolve, 1500)), | |
new Promise(resolve => setTimeout(resolve, 900)), | |
new Promise(resolve => setTimeout(resolve, 2200)) | |
]) | |
.then(results => results.length.b.c) | |
.then(c => console.info(c)) | |
.catch(err => console.error(err)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment