The .finally() method is used to attach a callback that will be executed regardless of whether the Promise is fulfilled or rejected.
.finally()
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.