The docs for Promise say that then() returns a promise. Are you saying it returns the original promise (ie. this)?
> But if your call to then isn't a Promise or a function that returns a Promise, your chain ends.
I don't think this is correct. The docs show examples of chains of then() calls where the intermediate function isn't returning a promise. See "chaining": https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
The docs for Promise say that then() returns a promise. Are you saying it returns the original promise (ie. this)?
> But if your call to then isn't a Promise or a function that returns a Promise, your chain ends.
I don't think this is correct. The docs show examples of chains of then() calls where the intermediate function isn't returning a promise. See "chaining": https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...