It seems to work but I can't find any documentation supporting it.
Example:
async function someTask() {
// asynchronous task
const data = await fetch();
const modifiedData = doSomeWorkOnTheData(data);
// NOT a promise
return modifiedData;
}
async function caller() {
// does this line wait for the return of the async function
// even when it does not explicitly return a Promise?
const someData = await someTask();
}
Basic question, I know - but I just want to be sure.