@E18e/Array.Prototype.Findindex

/icons/calendar.svg

Last update

Aug 9, 2024

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

const index = array.prototype.findindex(array, element);

After

const index = array.findIndex(element);

Build custom codemods

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

background illustrationGet Started Now