Convert let to const
let declarations that have no re-assignment with
ES2015P42 for VS Code
P42 for GitHub
Why is this refactoring helpful?
const keyword prevents re-assigning the value of the variable. It makes it easier to reason about the code since re-assignment does not need to be considered.
Related Code Actions
- Convert var to let or const
- Merge variable declaration and initialization
- Split variable declaration and initialization
- Split variable declaration sequence