Math Log10 Codemod
Introduction
This codemod transforms instances of Math.log10
using a polyfill math.log10/polyfill
. It streamlines the usage of logarithmic functions by replacing the polyfill with native Math.log10
, thereby reducing the unnecessary dependency on the polyfill.
Before
import 'math.log10/polyfill';const value = Math.log10(100);
After
const value = Math.log10(100);
Build custom codemods
Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community