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