String.prototype.substr Codemod
Introduction
This codemod replaces occurrences of the String.prototype.substr method with the more modern and preferred String.prototype.substring method. By doing so, it helps streamline the codebase, reduce reliance on deprecated features, and enhance readability.
Before
javascript
After
javascript