E

e18e/@e18e/array.prototype.findindex

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

Introduction

This codemod replaces instances of array.prototype.findindex with the built-in Array.prototype.findIndex method. By making this change, we eliminate the need for an external dependency, which helps reduce bundle size and improves performance.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.