async functions always return a promise
@hk3narwhal▲ 6 net votes
Even async function f() { return 1 } returns a Promise resolving to 1.
6 COMMENTS
Saved
Sound
Detailed
Top-notch
Smart
Nicely captured and easy to remember: async always gives callers a Promise, even when the body returns a plain value.