E

e18e/@e18e/string.prototype.trimleft

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

string.prototype.trimleft Codemod

Introduction

This codemod replaces the usage of the deprecated String.prototype.trimleft method with its modern alternative, String.prototype.trimStart. This transformation not only helps in maintaining compatibility with up-to-date JavaScript standards but also reduces the risk of issues arising from the use of obsolete methods.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.