Registry
E

e18e/@e18e/number.isnan

No description available

e18e38 executions

  • Legacy
  • e18e
  • module-replacement
Connect a repo
npx codemod @e18e/number.isnan

number.isnan Codemod

Introduction

This codemod replaces usages of the number.isnan function from the number library with the built-in Number.isNaN method. This transformation eliminates the dependency on the number library, reducing bundle size and improving the performance of the codebase.

Before

javascript
import { isNaN } from 'number';

const result = isNaN(value);

After

javascript
const result = Number.isNaN(value);

Ready to evolve your codebase?

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