Yo dog I heard you like await, so I put an await inside your await:
const data = await (await fetch('https://api.com/values/1')).json();
It would be nice if fetch offered a one-step method to get straight to the JSON data.
How do you get the nice sublime font colors?
LOL You could create a function for that. I just create a javascript code block in markdown for the colors. :)
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Yo dog I heard you like await, so I put an await inside your await:
const data = await (await fetch('https://api.com/values/1')).json();
It would be nice if fetch offered a one-step method to get straight to the JSON data.
How do you get the nice sublime font colors?
LOL
You could create a function for that.
I just create a javascript code block in markdown for the colors. :)