Registry
E

e18e/@e18e/array.prototype.toreversed

No description available

e18e35 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/array.prototype.toreversed

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
const reversedArray = myArray.toreversed();

After

javascript
const reversedArray = myArray.toReversed();

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.