Ddfordp

array-to-set-conversion

No description available

best practiceperformancesetarray
Public
1 executions
Run locally
npx codemod array-to-set-conversion
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.