@E18e/Math.Fround

/icons/calendar.svg

Last update

Aug 9, 2024

Math Fround Codemod

Introduction

This codemod replaces the polyfill for Math.fround with a native implementation available in modern JavaScript environments. By doing this, it reduces unnecessary dependencies and helps improve the performance of the codebase.

Before

import 'math.fround/polyfill';
const roundedValue = Math.fround(value);

After

const roundedValue = Math.fround(value);

Build custom codemods

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

background illustrationGet Started Now