Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
daybreaker2
· 8y ago · 0 comments
Because he needs it wrapped in a promise, sending a resolve/reject?
Comments
[–]
glitch003
8y ago
Fetch and response.json() both return promises. So it's still a promise.
[–]
robotpony
8y ago
A promise is a promise ...
[–]
Guillaume86
8y ago
True and in this particular example for response.json() it doesn't even matter.