E

e18e/@e18e/array.prototype.map

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

Introduction

This codemod transforms usages of the Array.prototype.map method to ensure that it correctly applies to array instances. The goal is to standardize array handling in the codebase, improving readability and performance by leveraging built-in ES features.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.