@E18e/Object.Entries

1.0.5Last update Aug 9, 2024
by@e18e

Object.entries Codemod

Introduction

This codemod replaces occurrences of the object.entries function from a third-party module with the built-in Object.entries method available in JavaScript. This improves performance and reduces the size of the dependencies in the codebase by utilizing native functionality.

Before

import { entries } from 'object.entries';
const array = entries(someObject);

After

const array = Object.entries(someObject);

Build custom codemods

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

background illustrationGet Started Now