What is the equivalent of Bluebird Promise.finally in native ES6 promises? [duplicate]
As of February 7, 2018 Chrome 63+, Firefox 58+, and Opera 50+ support Promise.finally. In Node.js 8.1.4+ (V8 5.8+), the feature is available behind the flag –harmony-promise-finally. The Promise.prototype.finally ECMAScript Proposal is currently in stage 3 of the TC39 process. In the meantime to have promise.finally functionality in all browsers; you can add an additional … Read more