@E18e/Reflect.Ownkeys

1.0.5Last update Aug 9, 2024
by@e18e

Reflect.ownKeys Codemod

Introduction

This codemod replaces the usage of Reflect.ownKeys imported from the reflect.ownkeys module with the built-in Reflect.ownKeys method. This change reduces external dependencies and simplifies the codebase while maintaining its functionality.

Before

import reflectOwnKeys from 'reflect.ownkeys';
const keys = reflectOwnKeys(obj);

After

const keys = Reflect.ownKeys(obj);

Build custom codemods

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

background illustrationGet Started Now