Ee18e

e18e/@e18e/string.prototype.trimleft

No description available

e18emodule-replacement
Public
10 executions

Run locally

npx codemod @e18e/string.prototype.trimleft

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.