@E18e/Function Bind

1.0.5Last update Aug 9, 2024
by@e18e

Function Bind Codemod

Introduction

This codemod removes the dependency on the function-bind module by eliminating its import statement from the codebase. This change enhances performance by reducing unnecessary dependencies.

Before

import functionBind from 'function-bind';
const boundFunction = functionBind.call(context, functionName);

After

const boundFunction = functionName.bind(context);

Build custom codemods

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

background illustrationGet Started Now