@E18e/Object Keys

/icons/calendar.svg

Last update

Aug 9, 2024

Object Keys Codemod

Introduction

This codemod replaces the usage of the object-keys npm module with the native Object.keys method. It removes unnecessary dependencies from the codebase, which helps to reduce bundle size and improve performance.

Before

import objectKeys from 'object-keys';
const keys = objectKeys(obj);

After

const keys = Object.keys(obj);

Build custom codemods

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

background illustrationGet Started Now