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