D

array-to-set-conversion

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

A codemod which makes the array search operation more optimal and efficient, by converting the array into a set and executing the set's has method to find the desired element.

Before

ts

After

ts

Ready to contribute?

Build your own codemod and share it with the community.