@E18e/Number.Isinteger

1.0.5Last update Aug 9, 2024
by@e18e

Number IsInteger Codemod

Introduction

This codemod removes the import of the number.isinteger module, replacing its usage with native JavaScript functionality. The goal is to reduce unnecessary dependencies and improve the overall performance of the codebase by leveraging built-in capabilities.

Before

import number from 'number.isinteger';
const isInteger = number.isInteger(42);

After

const isInteger = Number.isInteger(42);

Build custom codemods

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

background illustrationGet Started Now