E

e18e/@e18e/array.prototype.tosorted

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

Array.prototype.tosorted Codemod

Introduction

This codemod replaces occurrences of the non-standard Array.prototype.tosorted method with the standard Array.prototype.toSorted method. This update aligns the code with modern JavaScript standards, improving both code clarity and performance.

Before

javascript

After

javascript

Ready to contribute?

Build your own codemod and share it with the community.