@E18e/Math.Acosh

/icons/calendar.svg

Last update

Aug 9, 2024

Math ACOSH Codemod

Introduction

This codemod replaces the usage of the math.acosh/polyfill with the built-in Math.acosh method. This transformation reduces unnecessary dependencies by utilizing native JavaScript functionality, ultimately improving performance and reducing bundle size.

Before

import acosh from 'math.acosh/polyfill';
const result = acosh(value);

After

const result = Math.acosh(value);

Build custom codemods

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

background illustrationGet Started Now