Registry
E

e18e/@e18e/array.from

No description available

e18e33 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/array.from

Codemod: Replace Array.from Import with Built-in ES Feature

Introduction

This codemod transforms instances of array.from by replacing them with the built-in Array.from method. This helps to eliminate the dependency on the array.from package, reducing bundle size and improving performance by utilizing native JavaScript functionality.

Before

javascript
import array from 'array.from';

const result = array.from(someIterable);

After

javascript
const result = Array.from(someIterable);

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.