@E18e/Object.Values

1.0.5Last update Aug 9, 2024
by@e18e

Object.values Codemod

Introduction

This codemod replaces the usage of the object.values package by transforming calls to it into the built-in Object.values method. This update helps reduce unnecessary dependencies and leverages native JavaScript features, thereby improving the performance of the codebase.

Before

import objectValues from 'object.values';
const valuesArray = objectValues(someObject);

After

const valuesArray = Object.values(someObject);

Build custom codemods

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

background illustrationGet Started Now