Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

Because he needs it wrapped in a promise, sending a resolve/reject?


Fetch and response.json() both return promises. So it's still a promise.


A promise is a promise ...


True and in this particular example for response.json() it doesn't even matter.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: