@E18e/Array.Prototype.Toreversed

1.0.5Last update Aug 9, 2024
by@e18e

Array.prototype.toReversed Codemod

Introduction

This codemod replaces the use of the outdated Array.prototype.toreversed method with the modern Array.prototype.toReversed method. By making this change, the codemod aims to enhance code readability and take advantage of native JavaScript array methods, reducing reliance on custom implementations.

Before

const reversedArray = myArray.toreversed();

After

const reversedArray = myArray.toReversed();

Build custom codemods

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

background illustrationGet Started Now