@E18e/Is Nan

1.0.5Last update Aug 9, 2024
by@e18e

is-nan Codemod

Introduction

This codemod replaces the usage of the is-nan npm package with the built-in Number.isNaN method. By eliminating the import of the is-nan package, it helps to reduce bundle size and improve performance, making the codebase cleaner and more efficient.

Before

import isNan from 'is-nan';
const result = isNan(value);

After

const result = Number.isNaN(value);

Build custom codemods

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

background illustrationGet Started Now