E

e18e/@e18e/is-negative-zero

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

is-negative-zero Codemod

Introduction

This codemod replaces the usage of the is-negative-zero npm module with the native Object.is method. It optimizes the code by eliminating unnecessary dependencies, thereby reducing bundle size and improving performance. The transformation handles both logical expressions and direct calls to the is-negative-zero function.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.