I know about code after resolve will be executed; I'm not talking about that.
My question is about returning a resolve
object like:
return resolve(err)
Is it different from returning nothing? Like:
resolve(err)
return
which is like
...
resolve(err)
}
I'm talking about the canonical case where the promise is handled with then and catch like:
functionReturningAPromise().then().catch()