E

e18e/@e18e/arraybuffer.prototype.slice

How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

arraybuffer.prototype.slice Codemod

Introduction

This codemod replaces the usage of the arraybuffer.prototype.slice method by transforming instances that call this method into direct calls to the native slice method available on ArrayBuffer instances. This helps to eliminate unnecessary dependencies while improving the performance of the codebase by leveraging built-in JavaScript features.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.