@E18e/Object.Getprototypeof

/icons/calendar.svg

Last update

Aug 9, 2024

Object.getPrototypeOf Codemod

Introduction

This codemod replaces the use of the object.getprototypeof npm module with the built-in Object.getPrototypeOf method. This change helps to eliminate unnecessary dependencies, reducing the bundle size and improving the performance of the codebase.

Before

import object from 'object.getprototypeof';
const proto = object.getPrototypeOf(someObject);

After

const proto = Object.getPrototypeOf(someObject);

Build custom codemods

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

background illustrationGet Started Now