DEV Community

Discussion on: await, then, return?

Collapse
 
bacloud22 profile image
aben

Yes that what I intended to writing the code. But I meant JavaScript language speaking, does the return inside then return the value (here buffer/undefined) or a promise or go to heat...

Collapse
 
nombrekeff profile image
Keff

It should be the value, as you're using async/await.