Registry
E

e18e/@e18e/reflect.getprototypeof

No description available

e18e33 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/reflect.getprototypeof

Reflect.getPrototypeOf Codemod

Introduction

This codemod replaces calls to the reflect.getprototypeof module with the built-in Reflect.getPrototypeOf function. This change helps to eliminate an unnecessary dependency, thereby reducing bundle size and improving code performance.

Before

javascript
import reflect from 'reflect.getprototypeof';

const proto = reflect.getprototypeof(obj);

After

javascript
const proto = Reflect.getPrototypeOf(obj);

Ready to evolve your codebase?

Build tailored, compiler-aware skills to assess, plan, and automate complex codebase changes.