@E18e/Array.Of

1.0.5Last update Aug 9, 2024
by@e18e

Array.of Codemod

Introduction

This codemod replaces instances of the array.of npm package with the built-in Array.of method. By doing this, it eliminates an unnecessary dependency, thereby reducing the bundle size and improving the performance of the codebase.

Before

import array from 'array.of';
const arr = array(1, 2, 3);

After

const arr = Array.of(1, 2, 3);

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now