@E18e/Es Shim Unscopables

1.0.5Last update Aug 9, 2024
by@e18e

es-shim-unscopables Codemod

Introduction

This codemod removes the es-shim-unscopables package from the codebase. It eliminates unnecessary dependency by replacing calls to its functions with native JavaScript functionality, thus optimizing the bundle size and improving performance.

Before

import { unscopables } from 'es-shim-unscopables';
const result = unscopables(array);

After

const result = array.filter(Boolean); // Example of native functionality that may replace unscopables

Build custom codemods

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

background illustrationGet Started Now