Ee18e

e18e/@e18e/promise.prototype.finally

No description available

Legacy
e18emodule-replacement
Public
2 downloads
0 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

Promise.prototype Finally Codemod

Introduction

This codemod replaces the usage of the promise.prototype.finally polyfill with the native finally method provided by JavaScript's Promise API. This update not only aligns the codebase with modern JavaScript standards but also helps in reducing unnecessary dependencies, leading to a smaller bundle size and improved performance.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.