DEV Community

Discussion on: All about Promises and async / await

Collapse
 
jrop profile image
Jonathan Apodaca

I personally prefer the following form:

await fetch('https://api.github.com/users/wesbos').then(r => r.json())