Promise finally()Baseline · Widely available
The promise finally() method executes a function when the promise settles (resolves or rejects).
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Oct 2, 2018. Widely available since Apr 2, 2021.
Browser support
DesktopChrome
1–62Not supported
63+Supportedsince Dec 6, 2017
Current: 155Edge
12–17Not supported
18+Supportedsince Oct 2, 2018
Current: 154Firefox
1–57Not supported
58+Supportedsince Jan 23, 2018
Current: 157Safari
1–11Not supported
11.1+Supportedsince Apr 12, 2018
Current: 27MobileChrome Android
18–62Not supported
63+Supportedsince Dec 5, 2017
Current: 155Firefox Android
4–57Not supported
58+Supportedsince Jan 22, 2018
Current: 157Safari iOS
1–11Not supported
11.3+Supportedsince Mar 29, 2018
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: finally.
Feature detection
JS · check before using
if ("finally" in Promise || ("prototype" in Promise && "finally" in Promise.prototype)) {
// Promise.finally is available
}