Ee18e

e18e/@e18e/string.prototype.trimright

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

Codemod: Replace String.prototype.trimRight with String.prototype.trimEnd

Introduction

This codemod replaces instances of String.prototype.trimRight with the built-in String.prototype.trimEnd method. This change not only reduces unnecessary dependencies by utilizing modern JavaScript features but also improves performance by leveraging native functionalities.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.