@E18e/String.Prototype.Trimend

/icons/calendar.svg

Last update

Aug 9, 2024

String.prototype.trimend Codemod

Introduction

This codemod transforms instances of string.prototype.trimend into the more standardized String.prototype.trimEnd. This change not only aligns the code with current JavaScript standards but also facilitates better performance by using built-in methods without the need for additional dependencies.

Before

const result = myString.trimend();

After

const result = myString.trimEnd();

Build custom codemods

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

background illustrationGet Started Now