@E18e/Object Is

/icons/calendar.svg

Last update

Aug 9, 2024

Object Is Codemod

Introduction

This codemod replaces usages of the object-is npm module with the built-in Object.is method. By doing so, it reduces dependencies and leverages native JavaScript functionality, which can lead to improved performance and reduced bundle size.

Before

import objectIs from 'object-is';
const result = objectIs(value1, value2);

After

const result = Object.is(value1, value2);

Build custom codemods

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

background illustrationGet Started Now