E

e18e/@e18e/array.prototype.toreversed

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

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

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.