Promise finally()
Widely available since 2021-04-02
The promise finally()
method executes a function when the promise settles (resolves or rejects).
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 63 Released on 2017-12-06
- Chrome Android 63 Released on 2017-12-05
- Edge 18 Released on 2018-10-02
- Firefox 58 Released on 2018-01-23
- Firefox for Android 58 Released on 2018-01-22
- Safari 11.1 Released on 2018-04-12
- Safari on iOS 11.3 Released on 2018-03-29
Specifications
- ECMAScript Language Specification (#sec-promise.prototype.finally), from TC39 (Ecma International).