Created
April 7, 2019 19:01
-
-
Save khaosdoctor/b6bcd01ce13d9b237ffe66c9a5c053bc to your computer and use it in GitHub Desktop.
This file contains 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
const promises = [ fetch('index.html'), fetch('https://does-not-exist/') ]; | |
const results = await Promise.allSettled(promises); | |
const successfulPromises = results.filter(p => p.status === 'fulfilled'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment