E

e18e/@e18e/array.prototype.flatmap

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

Introduction

This codemod updates any usage of the Array.prototype.flatmap method to the more efficient built-in Array.prototype.flatMap method. This change helps to reduce dependency on polyfills or external libraries, ultimately improving performance and reducing bundle size.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.