#JSIdea: Promise.prototype.after() which acts just like .then() but doesn't change the fulfillment value.
So basically this:
promise.then(foo => {
stuff();
return foo;
});
becomes:
promise.after(() => stuff());
-
-
Promise#finally is also fired when the promise is rejected.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.