E

e18e/@e18e/array.prototype.lastindexof

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.lastIndexOf Codemod

Introduction

This codemod replaces the usage of Array.prototype.lastindexof with the standard lastIndexOf method on the Array prototype. The goal is to eliminate non-standard method names, ensuring compatibility with native JavaScript features while improving code readability and maintainability.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.