Skip to content

feat: add toSorted() explanation and examples.#3963

Open
AlexNT-maker wants to merge 1 commit into
javascript-tutorial:masterfrom
AlexNT-maker:patch-1
Open

feat: add toSorted() explanation and examples.#3963
AlexNT-maker wants to merge 1 commit into
javascript-tutorial:masterfrom
AlexNT-maker:patch-1

Conversation

@AlexNT-maker
Copy link
Copy Markdown

  • 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.

- 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.
@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label May 21, 2026
@javascript-translate-bot javascript-translate-bot requested review from a team May 21, 2026 13:18
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented May 21, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review needed Review needed, please approve or request changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants