Is there any difference between
const foo = async () => {
// some other code that uses await
return await bar()
}
and
const foo = async () => {
// some other code that uses await
return bar()
}
Where bar
is a function that returns a promise.
Is the await
redundant or does it make any difference?