Lavender Posted on Dec 8, 2023 Using Promises in finally in ES6 #es6 #cheatsheet promise .then((result) => { ··· }) .catch((error) => { ··· }) .finally(() => { /\*logic independent of success/error \*/ }) Enter fullscreen mode Exit fullscreen mode The handler is called when the promise is fulfilled or rejected Useful links Create Online cheatsheet ES6 Cheatsheet Top comments (0) Subscribe Submit Preview Dismiss Code of Conduct • Report abuse
Top comments (0)