Consider the code:
const getUsers = async () => {
// get users from DB
// and return
}
Is there a difference between
const someOtherFunction = () => {
// do some stuff...
const users = await getUsers();
return users;
}
And
const someOtherFunction = async () => {
// do some stuff...
return await getUsers();
}