@E18e/String.Prototype.Trimstart

1.0.5Last update Aug 9, 2024
by@e18e

string.prototype.trimstart Codemod

Introduction

This codemod replaces occurrences of the non-standard string.prototype.trimstart method with the standardized String.prototype.trimStart method. This update improves code consistency and reduces reliance on non-standard features, enhancing overall code quality.

Before

const str = ' hello world ';
const trimmed = str.trimstart();

After

const str = ' hello world ';
const trimmed = str.trimStart();

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now