feat: add toSorted() explanation and examples. by AlexNT-maker · Pull Request #3963 · javascript-tutorial/en.javascript.info
- Briefly explains the concept of immutability and why mutating original data is avoided in modern JS. - Introduce` toSorted()` as the modern alternative to `sort()` . - Includes a runnable code block (`js run`) demonstrating how the original array remains untouched compared to the new sorted array.